Extracting Signals and Graphical Models from Compressed Measurements