Subscription angular resource factory and basic usage