Added generic service to call core endpoints.

@settinghead could you please review. I have added this service so I can call any method of the core api passing the endpoint and the criteria. I think we could also use this throughout the ng-core-api-client as it would reduce the amount of repeated code.

Thanks!