v0.1.5: added 4th callback param “finalLocation”; more unit tests for redirection