main: add web view init function

This function disables all third-party plugins and sets various webview
settings before returning the webview.