Refactor SSO

I needed to be able to check username and if log-in without forcing a log-in,

Also I didn't see why the phpCAS init needed to be used as a singleton instead of just in the constructor.