Support writable streams (closes #2)