tweaked ordering of local_settings/settings, always use db-backed mem cache for sessions, simplified decorator for profiling API calls.