go.talks: move websocket backend code to its own package

This makes it easier to include it in other programs, like the Tour.

R=golang-dev, campoy
CC=golang-dev
https://golang.org/cl/7297043
2 files changed