added logic to read sub domain and set tenant id
Merge pull request #251 from Nayan/multitenancy

added logic to read sub domain and set tenant id