init: Split up AppInit2 into multiple phases
This allows doing some of the steps before e.g. daemonization and some fater.