Add Tx.OnCommit() handler.

This commit adds the ability to execute a function after a transaction has
successfully committed.
Merge pull request #118 from benbjohnson/commit-hook

Add Tx.OnCommit() handler.