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

added logic to read sub domain and set tenant id