Add ?goto parameter to improve authentication workflow.

Now a user can be given a course access code and if not logged in will still handle the grant access flow after login.
Merge branch 'master' into deploy