Send message instead of JSON

For whatever reason, sending JSON works better if we use
websocket.Message instead of websocket.JSON, and doesn't require a
double JSON.parse.

Also, ran go fmt to get everything looking nice.