Prepared move of process management into its own file, and started to cut dependency to the ddb table in init.