Event Handling Refactor

Refactored main.php to support the split of the \CivicInfoBC\ErrorPage class into multiple classes which all derive from \CivicInfoBC\ErrorHandler.