Updated the stream APIs to allow for stream access javascript object style as per the design. 

Updated tests to reflect this as well.