Add a route filter for raven authentication
Add use statements for Log, Config and Session
Loads of logging
Replaced static logged_in variable with a static method.
Removed static logged_in variable
Removed static $salt variable. Not really sure why it was there in the first place.
Fixed extra bracket.
Don't set user = null each time, just declare static var
Should be boolean "or" not "||" because otherwise it turns the statement into a boolean test.
Change method of testing existence to where->first()