3.1 REST API from service

Let's move the REST API call from the controller into the service and, in the process, figure out how to return and chain promises.