Cordova-specific autoupdate client code
Revert "Remove unused webapp_server code"

This reverts commit 963a16f5f1502036544909bf5d9dbbe2c63b790d.

It is not unused
Better error handling and stop the handle on reloads