Add support for job callbacks.

Anyone want to review this?

/cc @benkirzhner @proby