[FLINK-938] Auomatically configure the jobmanager address

This PR is an alternativ approach to #48 without touching the config file.  Once this is merged, I'll close #48
I am still not a big fan of manipulating the global configuration. That is an artifact of the singleton pattern that (which I think we should reduce and get rid of eventually). I would pass the hostname as a proper parameter, not through the config.