Some cleanup

* $wgExtensionMessagesFiles was used twice.
* Remove trailing whitespaces
* Use __DIR__ instead of dirname( __FILE__ )

Change-Id: I546748b117b3b7bbd0c4c3fff45f56270fa06753