Moved the bootstrap code into an application bootstrapper.