Allow beforeTransition callback to stop a transition.

Allow beforeTransition callback function to return false to stop a
transition occuring.
Update README.md