Return sorted list of metrics
Add generic REST helpers
Check that snapshot exists
Don't crash when aggregating empty data set