Merged app.prepare into app.config; support misplaced app.boot