Add first stab at WritableStream API.

Internal state machine has eluded me for tonight.