Code architecture fixed for Special:PageMigration

The code architecture has been fixed by having a listen() function containing
event listeners and their corresponding callback functions

Bug: 65738
Change-Id: Ia326ef6f41025bad18310189f32ea73f6e9cc6b3
Merge "Code architecture fixed for Special:PageMigration"