Closes #6 and adds log out of CAS as well.