fixed initialization order in constructor
moving functionality from user to session, adjusting server and user for session usage, fixed some errors (compilation succeeded)