Better handling of Application Cache, Mobile browsers now correctly update the app when a new version is deployed.

Unfortunately, in my experience, mobile devices which have already cached the page are "stuck", and will have to have their browser's cache files deleted (at the OS/"App Manager" level!) before they will update to the new version. Oops :(

Fixed a critical bug which could wipe your index file in some rare error scenarios.