Implement localStorage-based caching

Leverage localStorage, if available, to store and retrieve the app’s
config. Site config should be loaded dynamically, as they are more time
and update sensitive (nonce, contextual i18n translations, etc).

Next up on localStorage front: use it to temporarily store posted data
if redirected to/from wp-login.
Improved image handling