Persist ui flow state when redirecting

Based on https://github.com/Rise-Vision/angular-ui-flow-manager/pull/3