Rewrite of the API part to use Google Calendar v3 API and fix some bugs starting to appear in the deprecated v2