Adding plugin to handle application-generated 404 errors and new plugin hook, onPhantomPageCreate