Reorganization.

* Renamed 'main' module to more descriptive 'gallery'
* Renamed module containing all settings to 'base', previously 'gallery'
* Moved static files from 'gallery/static' to 'gallery/static/gallery' to facilitate
  the collection of static files.
Add script to fix permissions for parallel debug/production environment.
Fix some deprecation warnings.
Add local settings.
Reorder settings to match django's new order.
Also fix permissions for regular files.
Don't override templates' STATIC_URL.
Cleanup