move login and logout to separate methods

Conflicts:
	app/controllers/sessions_controller.rb

Conflicts:
	app/controllers/application_controller.rb
	app/controllers/sessions_controller.rb
add sudo functionality
Merge pull request #323 from wvengen/feature/sudo

sudo functionality