lshift/diffa — pull request #159 by 0x6e6562 (2012-05-21 16:41:22+00:00)
Title: Cache auth token lookup

The functional scope of this patch is to cache the frequently invoked calls:

* systemConfigStore.getUser/1
* systemConfigStore.getUserByToken/1
* systemConfigStore.listDomainMemberships/1

Along the way, we've had to implement a lot of infrastructural changes to facilitate the DB refactoring roadmap. These include:

* Creating lifecycle events for domain memberships
* Lots of DB query refactoring, mainoy replacing usages of the Hibernate session factory with explicit SQL calls