Some more work on the bootstrapper to try to get rid of annoying page reload halts when refreshing from localhost server (app cache events are not dispatched deterministically if the page loads too quickly).