Replace Job with Unit in registry/client interfaces

Fix #768