Exported the getNameOfRemoteStream function.
Attached the streamName as a text attribute to each stream.
Fixed a bug where the streamName wasn't being set.