[minor] Pass primus references in the new constructor signature
[fix] Correctly proxy the readyStateChange events.
[fix] Add readyState references to the SubStream constructor.
[fix] Properly transform messages.
[fix] Only accept 1 argument in write instead of an array.
[fix] Added missing references
[test] Added message transformation test