Logistration: enrollment cleanup and a few fixes

Changes:

* Move redirection/enrollment to AccessView and trigger it using an event.
* Ensure window.isExternal is loaded
* Don't set a default for terms of service (this was causing registration to fail with the default sandbox config)
* For paid courses, add the course to the cart and redirect to the shopping cart view.

Reviewers: @rlucioni @AlasdairSwan 
FYI: @dianakhuang 
I wonder if it would be appropriate to give this utility a better name and move it to the new `utils` directory I created. The path appears in 10 files.