User stream 4

The user stream feature and a refact for streaming processing. Rebased to the develop branch.