Add support for afterBoot callback

Add a callback option that fires when all boot modules with the 'waitForCallback' flag set to true, has finished.