Added missing references to $cfgmgr and $webapp to fix session storage
Added copy constructor to User class, User::Get returns User instead of UserModel