Fix some parsing bugs. Remove the awful layout cache hack. Welcome back &numposts&.
Implement maintenance/lockdown mode.