updated googleapi client; removed impersonate user; better server-side error handling