Set API URL as a class property

If we ever need to change the URL for any reason, it has to be changed in multiple places. A property on the class provides a slightly better method of dealing with that.
Merge pull request #1 from Morgon/patch-1

Set API URL as a class property