added client discovery handler
added server discovery handler
modified discover host test to include custom client discovery handler
and custom server discovery handler