Session handling, document root better determined and some small
modifications.
Added a logoutcontroller