Refactor commits get request to a service.
Edit the factory to return a promise
  - controller resolves promise and sets scope