Added logging for debugging purposes.

Also cleaned up Twitch code so it actually works as a Twitch browser.