Added id permissions to get user's e-mail, broke gmail functionality into separate module