refactored TequilaManager into a factory.

It makes more sense to put it into a factory for a session, because we
were mostly doing an unneded proxy for a session.