registry: use unitModel for Unit serialization
job: drop unused method IsOneshot
api: use "schema" as schema name

This makes the schema generator create the schema file
with the correct package name.