A simple authentication module for AngularJS