minor restructuring
starting to add login
added authentication db operations, untested!!!
fixed user management, it seems to work
starting session implementation