Lots of modifications to allow for a different storage directory

Also starts templating local_settings.py including memcached support
and storage_dir configuration.
Add the storage_dir attribute