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
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.
Add a migration to load all iTree regions

Deb gave the ok to include these in repository. The data in this
migration was generated from an updated region shape file from which the
lakes have been removed.
Add view decorator for user update views, add URL tests for user update.

Checks the username, returns 404 if the username doesn't exist, 403 if it's
for the wrong user, and replaces username with the user otherwise.
Remove unused prototype directory, fixes #797
Add endpoint for updating user profile photos
Add API endpoint which calls upload_user_photo
Fix indentation and remove vim filetype comment
Add photo upload to user profile page
Merge branch 'master' of github.com:azavea/OTM2 into topic/add-all-itree-regions
Merge pull request #835 from maurizi/topic/447/userProfilePhoto

User profile photo upload
Add uitest option to use a real browser

When debugging ui tests it is helpful to watch the browser as the test
progresses.
Merge pull request #834 from jwalgran/topic/add-all-itree-regions

Add a migration to load all iTree regions
Make uitests more robust

  * When fetching trees from the database the queries are now scoped to
    the test instance to prevent other data in the database from
    interfering with assertions.

  * I was running into intermittent failures in some of the tests which,
    showed up more when running with a virtual display. Adding delays
    between steps appeared to resolve the issue.
Merge pull request #840 from jwalgran/fix/uitest

Make uitests more robust
Merge pull request #839 from jwalgran/topic/add-ui-test-visual-switch

Add uitest option to use a real browser
Merge pull request #829 from RickMohr/restore-utility

Restore mistakenly-deleted utility function `getUpdatedQueryString`
Fix issue in 925b2829de, saving user photos should use save_with_user.
Save address fields when plots are moved

Includes the following places:
* Create a new tree on map page
* "Quick edit" on map page
* Edit details page

This introduces a transitive dependency where editing will fail if the
user has permissions on plot.geom but not on plot.address_*.

Fixes #341