die more explicitly when memcache is missing (PHP is terrible)
log hit/miss when DEBUG_CACHE is on
log time spent waiting for database queries
a little extra consistency in cache variable names
update lib/context.php
Merge pull request #461 from shish/dbtime

Log time spent in database (and some other minor performance debugging tweaks)