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