Don't cache the database - makes it easier when we need to swap the database out for unit testing.
Don't need to clear the identity config anymore since now we're expecting each
identity provider to use a separate sub-config.
Rework the code that switches us over to using the test database.
Merge branch 'kohana_3' of github.com:gallery/gallery3 into kohana_3

Conflicts:
	modules/gallery_unittest/classes/GalleryUnittest/Controller/GalleryUnittest.php