Define a service for accessing data based on resource
Use service based on $resource for data that is resolved into a state controller