More consistent app ready event for testing.
Use interval for checking for print ui init.
Merge pull request #577 from mapbox/appready

Appready