Add redirect.
Add url redirect to.
Update error code.
Fix unit test.
Move js import into courseware js group.
Use confirm dialogue.
Fix unit test.
Merge pull request #4038 from edx/anton/redirect-on-error

Add 401 error handler.