Sessions login logout

added logic for login and logout.
moved links into application layout.
put session login into SessionsController.