and REST end point for creating a metric, and updating end point URIs

Also updating a test to do some initial request body validation. More to come.
The most recently added tests will still fail for the in-memory backend since
the APIs are not yet implemented.