Feature #4149 : user account validity
- changing the management of user accessLevel information
- modifying unit tests datasets around users
- deleting some dead code
- refactoring some code