Add fixes for basic stream api support

Fixed api typo 'distinquished'
Added proper json serialization for datetime and timerange

Change-Id: I6af8bb15b5e9e65e7c6965cd80e1483b3df04b99