> a fairly sophisticated client side application
is it actually an full blown IMAP client? Most likely it uses AJAX to fetch JSON from Google's proprietary APIs
It works offline, that should give you a clue that it is not just a request/response app. Yes, it does make requests to Google's servers, but it can run completely offline with no connection as well.