Cleanup all processes before exiting

This should prevent forkbombs or other weird cases where a process has
detached itself from runguard and doesn't get killed normally.
Only execute JSONcpp library check when building submit client
and throw errors when required libraries are not found.
Add git to list of required packages for development.