Implemented logout

Moved sessions into own model