Caching

This adds caching for the locale JS assets and improves the diagnostic output when asset retrieval/caching goes awry.
Sounds good to me! :+1: