Support setting url in config

Currently we have localhost hardcoded in the service file. This patch makes it
to default to localhost, but let's people override the url in config file. Thus
changing URL doesn't need changing service file.