Use DEBUG instead of TEMPLATE_DEBUG to turn on/off minified JS
Fixes #826

TEMPLATE_DEBUG was always being set to True, since it was set to the value
of DEBUG *before* DEBUG was reset from local_settings.py.

Instead, we are now always setting TEMPLATE_DEBUG to True, since it has no
effect when DEBUG is False
Properly handle generating a hash for objects with no audit records
Fixes #821
Merge pull request #823 from maurizi/fix/821/plotPopup

Properly handle generating a hash for objects with no audit records
Merge pull request #828 from maurizi/fix/826/minifedJs

Use DEBUG instead of TEMPLATE_DEBUG to turn on/off minified JS
Use minified JS when not in DEBUG mode
Commit 6e982d83c9 mised a few places TEMPLATE_DEBUG was being used.
Merge branch 'master' of github.com:azavea/OTM2 into topic/add-all-itree-regions