Refactored rest client into its own class
Added authentication headers to APIKeyAuth