wrap the rails api calls in a service to allow easy extending of the api later.