Add class extensions.
Multitenancy gem, using acts_as_tenant.
Implement the tenancy decision based on looking up the host name.
Ensure that we always have one root instance.
First spec for the Instance model.
Loading seeds should be part of the Rails helper.
Define some tests for the instance model, just to try out RSpec/Factory Girl.
Refactor hostname lookup logic to the Instance model.
Fixed broken controller.
Document how to set up the database for development and testing.
Rename 'hostname' to 'host' for consistency with the HTTP spec.
Fix accidental breakage when querying for hosts.
Make the generated host names unique to a test run.
More behaviours with regard to www handling for hosts.
Fix Hound lint warnings.
Add helpers to set the current tenant when running tests.
Devise for user authentication.
Add Devise initialisers.
Implement users, with multiple email addresses. Devise's authentication would need to be modified to suit the new one-user-many-emails paradigm.
Implement test cases for various edge cases.