Change cookiehandler to store username
Update sessions_controller for stateless api