Restore scripts/wait_for_emulator.sh

This script is used as part of our test suite for Travis CI, and is
needed to prevent the build from failing. (Or to be more accurate, to
allow the tests to run at all.)