Cleanup and refactoring of yahoo discovery service

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>