Implemented frame buster and smart linking

Fixed the issue of the CAS login coming up within the frame.  Also added the ability to return to the uri which encountered the login request.