many changes. Big one: change to gapi.auth.authorize() from signin().