Added the optional redirect parameter to the authentication token request.

When making an authentication token request, a caller may pass a redirect path where the user will be redirected (on the same domain) once they successfully authenticate themselves.

Closes #480