Minor - cleaning code.
Adding copy survey see BT#8611
Minor - format code.
Static insertion of user to a session changed see BT#7057
Fixing delete user from session (using function).