use multi thread for browser
added chdir
added websocket server to get UI in browser