Update Endpoints service to be chain able and not require the $scope