Adding Session handling to client
Improved login
Login missing cookies

It works almost fully, although it's still missing cookies for
persistent sessions.
Design improvements