allow wrapped hooks to pass error through to node-orm

`before*` hooks in node-orm support the ability to pass an error to their next block to halt the operation.

I've added the ability for the wrapped hook to pass an error parameter, which will in turn be passed to node-orm.