Added redirection support.

Added redirection support for authorization code responses.