some style guidelines and usage fixes: 

* use this.log ( not console.log or mw.log ) 
* use local message file ( we don't want to load every modules messages
when not enabled ) 
* break up some long function call lines for readability