Use "chrome-devtools://" scheme for devtools

Currently the devtools window is implemented by starting a remote debugging server, this PR reimplements the devtools by using the "chrome-devtools://" scheme, so problems like devtools's state not being saved can be solved.