Fix logistration Jasmine tests

Includes several bug fixes caught during test writing, general clean-up, and adds js-url, a lightweight URL parser
Moved to setting ajaxType with passed in method for models and now handling form load fail errors
Added tests.
Merge pull request #5872 from edx/alasdair/logistration-form-errors-and-submit-methods

Moved to setting ajaxType with passed in method for models and now handl...
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

For paid courses, add the course to the cart and redirect to the shopping cart view.

Don't send form method and url as form data.

Stub window.analytics in the access view test.