-Added API authentication to authentication routes. This type of authentication returns data instead of a HTTP redirect.
-Added basic logic for authentication on client side, returning the user to login page if not properly logged in
Changed injectables to Array notation in order to be compatible with UglifyJS later on. From now on injectables should always be declared as ['injectA', 'injectB' , function(injectA,injectB) {} ]
Fixed bug that gave error when checking for logged in teacher