added after_commit hook
added specs for :after_commit hook
Merge pull request #92 from tisba/master

after_commit callback