Refactor metrics


More standardization around a few things:

- logging, especially in worker threads
- metric parameters using the _param_types structure
- JSON response and flow for time series requests in metrics_manager (more to come)