Login via CAS is now working

fogbugz:5062
Implemented requireAuthentication as a PHP class, currently using
CAS for SSO authentication. This is a rough, working implementation
that needs polishing, better error handling, etc.