Add 401 error handler.

Ticket: [BLD-1036](https://edx-wiki.atlassian.net/browse/BLD-1036)

@cpennington @auraz please review.
It would be better to add this to the `courseware` js group, rather than explicitly importing it here.