renderer_discovery: add modularity in the parsing of renderer protocols
This MR provides an API to realize the parsing of renderer protocols with submodules of those protocols instead of doing it in the renderer discovery itself. Only the avahi renderer discovery was refactored to use this API in this MR.
Ref #26027