Refactored the webview to make the useragent available from the command line.