Load stuff from ENV

This PR loads the Metrics API url from the ENV, as well as adds the authorisation stuff we now have in the Metrics API.