feat(payload): Add support for Path unit types.

It also moves the logic to retrieve peers for unit types to an interface.
This way we can specify what to do for each type.