Refactor RL modules related to Special:Userlogin

* Removed duplicated code
* Moved generic styles to mediawiki.ui
* Made sure scripts only run when they're needed
* Cleaned up formatting
* Cleaned up module and file naming

Change-Id: I90a2331182d4d66f0584083b30b90ac6471c3aaf