Refactoring and fixing Chef Client 12 compatibility

Making use of Chef::Resource::OpsviewClient objects and ensuring
rest-client gem is installed since chef-client 12 no longer bundles
rest-client.