added gensql.py to generate sql in the correct order
added option to generate all tables
Merge pull request #1 from ar45/gensql

added command manage.py gensql to generate sql for all installed apps