Added multi-tenancy support.

works with Apartment gem.