When a stream is shared to someone with shareStream function, that user
is registered as stream viewer in db. 
Test codes are also written. 
resolves #295
Merge remote-tracking branch 'origin/master'