[DEV-165] New exported function for modules.
[DEV-165] Factor out send function
[DEV-165] retry servers in the same priority group
Add retry PV
Improve server param parsing
[DEV-165] Add high water mark (hwm)