Added streams controller

Sadegh, please kindly review this commit, tnx.