Debug option for webview

also clean up some build config files