ios webview caching

Partial work for @imurchie to take over.
I'm confused.  It's probably just the names, but I can't tell if callbackAddress and callbackPort are supposed to be functions or strings. I'm guessing it's the latter, but it's a little confusing. Can you add a short comment for the uninitiated?