Cache username
Code formatting
Cached ParserOptions
Removed early return
Fixed phpdpc return type
Unified constants
Single responsibility for the contr. fetching function
Moved static variable to method
Merge pull request #4776 from Wikia/mercury-var-caching

Addressing mklucsarits CR comments