Caching

This adds caching for the locale JS assets and improves the diagnostic output when asset retrieval/caching goes awry.
Should this say "Wrote $assetname **into** cache?"