Adding flush to interface

This adds ``flush()`` to StreamInterface. This would be a breaking change, so it would require a 2.0 tag.