VE-190: backwards compatibility fixes for MW 1.19
VE-190: linting and whitespace.
Merge pull request #2 from Wikia/VE-190

VE-190: backwards compatibility fixes for MW 1.19 #back-compat