Improve WebSocket test page to be able to send events
Fix missing deserialization and filter unknown events