Application cache support

This adapts our bootstrap process so that we wait for the app cache status (if applicationCache is available and used) before we load Lively. This automatically reloads the world to use the new sources in case the app cache downloaded new sources.