add models, migrations and init_master_db command to webapp

I generated the django models, added support for south migrations and created an init command to create the tables for the 'master' db.