Allow atom responses in websocket handlers - fixes #563

All the discussions in #563