Improved query string handling, tests

 - Improved handling of query strings, only set fields will be encoded
 - Added missing fields to streams, channels
 - Added basic tests for streams, channels
 - Made all endpoints that require authentication unexported for now