browser failure management; new preference sample

Adds WebView failures management and a sample with preference creation