This commit replace as much as possible of clean_param and PARAM_ usages related to user object. Also few unit tests has been changed to match the new validation
This is a super confusing place to change your default text editor. Lets make these things easy to find. Part of MDL-45774