HTTP Errors, login fix

Fixed so that you don't have to click login twice.

Also, if any HTTP request returns an error, the `$rootScope` emits the appropriate message for the flash directive to handle. 

This also includes a scheduler that checks which openings have expired at 6 am every day, and notifies the users.