Django 1.4 support

Needs review - lots of re-arranging in this PR.

Fixes #307.

Biggest change is the new Django 1.4-style directory structure along with fixes to support that.