Added support for packaged webapps and cordova, but not documented.
Fixed a bug in RPC when offline.