Nailgun base objects autodoc & small refactoring

Related to blueprint nailgun-objects-flow

Change-Id: Ia38d9bfcfe351ef96dc47180dc9e94ea2eef55e9
Merge "Nailgun base objects autodoc & small refactoring"