complete logging in with tests and helpers
add logout procedure, arcane persistence code for cookie, remember me checkbox