Fix web sockets (a bit hackish) and cleanup console.logs.