Fix problems with installing econsensus for first time:
- don't override entirety of deploy command in localtasks.py as it will
(and has) get out of date. Instead, use main tasklib.deploy function (including
git submodule commands) and define only post_deploy commands in localtasks.py
- the tests for whether we want to load env-specific data for auth_user and
django_sites now take into account:
 - the fact that django-guardian specifies a post_syncdb signal handler
    to create an User called AnonymousUser, so on first deploy, the table
    won't be empty, but does need initializing
 - the fact that django.contrib.sites specifies a post_syncdb signal
   handler to create an example.com Site object with id=1, so on first
    deploy, the table won't be empty, but does need initializing
https://aptivate.kanbantool.com/boards/5986-econsensus#tasks-1260285
Convert to using new management commands to decide whether user/site
data needs to be initialized (as suggested by Hamish). This:
- is more futureproof and robust
- keeps localtasks.py a lot tidier
- and enables testing of the logic
https://aptivate.kanbantool.com/boards/5986-econsensus#tasks-1260285
Drop json import now we no longer use it.
Fixed parsing of the result of the new management commands!
https://aptivate.kanbantool.com/boards/5986-econsensus#tasks-1260285
Merge pull request #90 from jogwen/initial_install_fixes

Fix problems with installing econsensus for first time (https://aptivate.kanbantool.com/boards/5986-econsensus#tasks-1260285)
Take a backup of the db and root directory at start of each fab deploy,
keeping only one previous backup.
Further tidying of fabfile.deploy function as suggested by Hamish:
- Added check_for_local_changes() (called from overriden fablib.deploy)
- Create env.project_root using existing fablib function, not manually
- Stop calling the following from fabfile.deploy because an equivalent is called from
  tasklib.deploy()
    - collect_static_files
    - update_db
    - load_fixtures
Also, added a new function for testing fabric deploys on localhost via
'fab dev deploy'.
Merge pull request #91 from jogwen/backups_for_fab_deploys

Backups for fab deploys, tidied fab deploy, and new function for testing fab deploys locally
Bump commit number of django_organizations submodule to
https://github.com/aptivate/django-organizations/commit/61ba957f131a48e9bb701336ac23702079c08049
so that we get Philip's fix to allow email addresses > 30 chars in new
organization form (fix for
https://aptivate.kanbantool.com/boards/5986-econsensus#tasks-1255113).
Also allows Organization name/slug to be up to 200 chars long (used to
be 100) and allows superusers to be able to view screens for
Organizations other than those they are member/admin/owner of (although
they can't click through to those at the moment - low priority task
https://aptivate.kanbantool.com/boards/5986-econsensus#tasks-1388735)
Merge pull request #97 from jogwen/develop

Bump commit number of django_organizations submodule to https://github.com/aptivate/django-organizations/commit/61ba957f131a48e9bb701336ac23702079c08049
so that we get Philip's fix to allow email addresses > 30 chars in new
organization form (fix for
https://aptivate.kanbantool.com/boards/5986-econsensus#tasks-1255113).
Also allows Organization name/slug to be up to 200 chars long (used to
be 100) and allows superusers to be able to view screens for
Organizations other than those they are member/admin/owner of (although
they can't click through to those at the moment - low priority task
https://aptivate.kanbantool.com/boards/5986-econsensus#tasks-1388735)
Touch wsgi handler at end of deploy to ensure restart
Changed version number to 0.4.0
added separator between organization name and Admin link
more verbose password reset email templates
Merge pull request #99 from philmcmahon/version

Version number fixed
Merge pull request #100 from philmcmahon/two-links-separate

added separator between organization name and Admin link
pipe separator character removed from links
Revert "pipe separator character removed from links"

This reverts commit 8b52b4e00308347f658a827619e5de40e16c1477.
pipe | separator character not part of links
separator after 'Admin' in header no longer link