Basic setup for AngularJS. Example factory to connect to Instance endpoints