core: implemented getConfig() facility. ps: reading config, connecting to master, and relaying working!