Added functional test for login and logout (#3)
Added some ids for easier functional tests (#3).
Made login and logout redirect after their done. Also wrote unittests for them (#3).