Refactor deploykey to use object / repo pattern
Add rspec test coverage for new code