Refactor #3942: Move audioEngine and imeDispatcher initialization into their own file