Fix for #3609690, also includes #3515696 fix. Keeps the google_api_client_load_library function in the module file for D10 compatibility, but puts its functionality in a service and changes the code to use that service. Changes some constructors to use 'readonly'.