Messy fix to make ensureIndexes() work. Basically, make Mapper's thread
local and re-map classes for each thread/request. This is probably
pretty inefficient, since this means ensureIndexes() is called on every
request.

Need to figure out how to use only Mapper for the entire application
(make TenantResolver's thread-local?)