Refactor raph

Reworked the Gmail API stuff so we weren't parsing JSON.