add  errorception logging.  Needs to be BEFORE ALL OTHER SCRIPT TAGS on every page.

Maybe this shouldn't go in template base.html but not sure where else it should go.  Putting here for now.