CAS Implementation

Switching over to CAS for authentication protocol. Removing crappy
merges.