My attempt at an AngularJS/Laravel 4 authentication functionality