allows CORS on client side
adds AngularJS factories to project