Add beforeNavigate hook
Add docs and tests
Merge pull request #8 from walmartlabs/before-navigate

Add beforeNavigate hook