Remco django166

Changes for Django 1.6.6.

Note that these changes disable uploading of shapes, and therefore most of the app itself. But that's OK, it's only used for ShapeLegend anyway...