Change RegistryService to singleton, and add unit test

- Remove static from declaration of RegistryService (metrics)

Resolves: https://www.pivotaltracker.com/story/show/77113576