fix for #534

This dispateches a event when the app is ready. So we can now wait until we register the mesage handler.