ios webview caching

Partial work for @imurchie to take over.