Added stream rest service (Not working yet!)
Fixed error (value should be replaced with value from database)
Code cleanup and comments