Add some caching to Travis
Tweak wait for emulator script