Issue 27 multitenancy support

fixes #27