Fixes #26 - needed to parse the config.url correctly (by doing URI.parse(config.url).host