Create error_handler.php

added start of error_handler class, will have to add define the rest once Smarty template engine is added