Actually create the user configdata before doing a foreign key
don't dup-check deleted records
cleanup variables when re-using an anon user
Merge web
TODO: session mode(s)
Use a (local) cache for ObjType
missed one
Always also load objects' configdata
stupid error
Cache ObjType and indirect objects

* ObjType.get(FOO).mod is ineffective. Cache _mod separately.

* Composite objects are not cached correctly. Fix.
Optimize OBJ.type.id => OBJ.type_id

The former did a database lookup
don't md5-mangle cache keys

md5 keys are longer and hinder debugging
Implement a simple ".cached()" query decorator
more hopefully-helpful lazy joins
Annoyingly, fetching .id on an object reads it from database
Adapt ObjRef caching logic to .cached()
Cache management: forgot to change the doc string
Moved cache display to core
Add admin command to clear cache
Cache site+user