Implemented exception handling.
Updated the error_handler documentation.
Add in the ability to set a logging path.
Only send an error report using mail if we have actually set it up.
Remove any trailing slashes on the end of the path.
Add in support for logging using files.
Update the error handling example to show directory logging.
Fixed an issue which caused multiple error report outputs to duplicate data.