[#978] Added pre migration script

Added a python script that uses the Django env to remove Django
sessions instead of using the mysql client.
[#978] Cleaned up migration script
Merge pull request #981 from akvo/978_pg_script_fix

[#978] Migration scripts