Redirect login helper

- Extract URI filtering feature in a dedicated function, allow overide of `getCurrentUri()` to not use global vars
- Add filtering of Facebook params if the user decline the login