Clean ups - pull out duplicate constants.
Clean up - remove duplication.
Clean up - constants.
Correct use of logger in exception blocks.
Clean up - constants.
Clean up - the url builder is the only thing which should know what the API base url is.