moved $http to a service

Uses promises .then in both controller and service to pass data.  I
should try this with a factory instead.