Add sentry reporting to base JS

We catch server side errors in sentry but not client side ones at the moment. We can use Raven.js to report client side errors as per https://docs.sentry.io/clients/python/integrations/django/