Fixed error handling, added tests

 - Error handling of http response codes
 - Added basic tests for games, ingests, search, teams and videos
 - Updated response types and functions to reflect upstream Twitch API changes