allow redirect to be a function
Merge pull request #485 from spine/redirFn

allow redirect to be a function