Support IO.stream/2 and IO.binstream/2 and deprecate current IO.sream/1 and IO.binstream/1

Closes #1582