improve code quality

- removed code duplication by moving registry client in to bosh_registry gem
- back filled registry client with test