Move google login related stuff into lib