Dev: Work on User right: work for survey_manager adding
Dev: Fixed issue: config['defaulttemplate'] by default (if user can not acces the template)
Dev: No change, just move/rename some function :