Merge pull request #1857 from jezdez/multidb-hotfix

Fixed NameError.
Remove legacy HTML from the base template
Merge pull request #1845 from darkwing/base-template-cleanup

Remove legacy HTML from the base template
Use Memcache and clean up caching setup.

- remove django-cache-machine

- removed secondary cache alias again

- use Django's cached_property decorator instead of own

- updated constance's cache setting to last format

- django-memcached-hashring for consistent hashing (based on python-memcached)

Fixes #1780.