Extract console js code to static/js/console.js

[ci skip]
Add disconnect button

[ci skip]