Use Almond.js for minified build

Use Almond.js to package the javascript code into a single file. This helps load time a bit and also helps avoid module-loading timeouts on slow connections.

Temporarily work around an Android 2.3 Browser issue where we don't see the application cache events.

/cc @hampelm