Various fixes and filthy hacks to fix rendering of non-Main Page mainspace pages.

Got rid of a few $wgTitles but introduced some new ones; I'm thinking of changing the former Categoryhelper methods to be non-static, so that using $this->getTitle() becomes possible.

Initial but not-totally-perfect support for the Orange Bar of Death and "Restore X deleted edits".

Added class="mw-body" to div#article.

Some E_NOTICE fixes in getTabsArray().

Fixed one incorrect i18n message name.

Change-Id: I8fe4abf173e93b5130df896b5af6c6d33c26a87f