Clean up Streamer.onmessage

This now receives JSON, and also cleaned up the body of the `onmessage` handler.