Fixed the CAS bug for local machine. Settings sets debug to true if is being run on a local server, and all of the views only check login if debug=true.