Decode URI & pass fragment if query string is set

- Logout is now set up correctly to accept the query string parameter for redirecting
- URLs are now decoded so that fragments are properly passed via query strings
- Fragments are now appended to the URLs if they exist