added beforeTransition hook
added afterTransition as well, since this is more useful
Merge pull request #21 from firedev/master

Added beforeTransition hook