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.
Let worker report real hostname

Getting rid of hardcoded 'localhost' constant and using real hostname.
Merge pull request #20 from miska/master

Support setting url in config