Add BatchMetricsQueryHandler and tests
Refactor plot request parsing logic into its own class
Change MetricData to also contain 'type' of metrics
Changes to serializers for JSON output