Semi-official GMail API from Mark Pilgrim for use in Greasemonkey. Used to build RTM + GMail