Metrics: remove double parsing of JSON from server-side, add GalaxyApp object with config and user, tie metrics-logger to GalaxyApp