updated AjaxResponse, added ajax example, refactored 404 hook slightly