Streaming API

Initial implementation of the streaming API - See StreamTest for usage. Feed back appreciated.