* Uses correct scopes for google API based on config.js values. * Lower the number of parameters that we pass around. * Fixes googleAPIState state checking.