Metadata endpoint

This requires the setup script to start setting a `REMOTE_AGENT_VERSION` environment variable, which I'll need to discuss with @cakkineni.
I think we probably want the metadata endpoint to be versioned the same way that the service endpoint is, so this should be `/v1/metadata`