Adding option to set the api URL.

Also adds some basic tests.
Changing how API url is set.
Updating readme to show how the api url can be changed.
Merge pull request #4 from fernandomm/api-url

Allow user to set the API url