refactor objects slightly, better sigchld handling, add load check before spawning

Signed-off-by: Roy Storey <roy.storey@plantandfood.co.nz>