master, slave: allow user to set host and port

Signed-off-by: Paweł Dziepak <pdziepak@quarnos.org>