Metadata endpoint

This requires the setup script to start setting a `REMOTE_AGENT_VERSION` environment variable, which I'll need to discuss with @cakkineni.