listen for $stateChangeStart with ui-router

fixes #292