Adds redirect functionality for non-GET requests

Non GET requests will be redirected to the request
referer after a successful sign in. GET requests
will continue to be redirected to the requested path.