Revert "build: expose AppInit() for non-gui startup"

This reverts commit b0a1ec97b01ded9898742ccb83e0630641915007.
build: prepare to move DetectShutdownThread
build: move console-only functions into init_noui