Add "from" field for envelope
Handle subscribe and unsubscribe commands correctly
Update test for socket.io API about pubsub type commands (WIP)

Tests for notification events must be added.