Justin.tv/Twitch - Move token generation into own function.