Added session controller and implemented basic login/logout behavior.