Create wait_for_emulator.sh

Copied from pestrada/android-tdd-playground.