Fix server URL handling (domains); better logging
Merge pull request #19 from kumar303/server-url

Fix server URL handling (domains); better logging