make websocket secure connection (use wss instead of ws)
add code for analytics
minor beautification changes to window.html
when the URL box is clicked, it is automatically copied to clipboard.
remove secure websockets (as it does not work fine sometimes, need to debug). Add more time values to reconnect-websockets.