Updated the maintenance page to use the foundation5 layout.
Updated the error pages to use PAGE_BASE.
Moved some of the defines around, because they can be useful in both production and development modes.