Fix error determines tenant on QueryCache class.
Fix error in the CheckPending middleware of ActiveRecord.

Modify the middleware to work together with motel-activerecord.
Modify lobby middleware.

- Deprecate noexistent_tenant_pafe of Motel::Manager.
- Lobby just manages the tenant switching.
- Add dependencies.
Restructuring files.