Added an initial work-in-progress implementation of master server query

Signed-off-by: Lilis Iskandar <veeableful@gmail.com>