BON-7583 Capture client-side errors.

 Changes to the app to make it work with our code.

  - make logger.py 2.7 compliant
  - use ndb for models
  - don't swallow the error, so user can see it and we can use browser tools to
    investigate