Added first service.

Added a first angularjs service for ajax/auth.