MDL-40766 Smarter positioning of tinymce button
MDL-32746 libraries: Upgrade redirect for major version

Due to the newly introduced event user_loggedin, the upgrade
could not be reached as the event class was not found during login.
To remedy this, we need to force the upgrade before login.