Added function getProviderById to providerService.

This function first checks if the object is in memory, if not then makes an api call.
Changed the routeParams['providerId'] to the Id of the entity instead of angularjs $index.