Changed hardcoded API base path to a dynamic one set by the URL.
Merge pull request #24 from dzautner/fix-hardcoded-api-address

Changed hardcoded API base path to a dynamic one set by the URL.