log all caught exceptions to apache log

Fixes #144:
* Log all caught exceptions using error_log
* Add a nightly cron job to e-mail any new contents of the apache error log to anyone who is interested (currently me, but it's easy to add other people)