Added support for passing error to node-orm hooks

This is adapted from PR7 (#7) by @jwhitehorn to follow the library's
coding style and include better support for synchronous callbacks which
can throw errors.
Use function.bind() instead of temporary variables
Version up to v0.3.0