Wrap gapi auth in an angular service.