Added a 500 error page.
Enabled optimisations in .htaccess.

Also added some comments explaining the sections.
Cleaned up the JavaScript loading a bit.

It was all over the place. Ew.
Merge branch 'develop'