improve code quality

- removed code duplication by moving registry client in to bosh_registry gem
- back filled registry client with test
Merge pull request #196 from pmenglund/code_quality

improve code quality