Add variable content width logic

Here I've:

-  Added logic for *if* the left or right sidebars should be shown; if not, the content grows wider
-  Moved the "approvals" box to the left
-  Moved some wiki-specific JS code from main.js to wiki.js