[Events Calendar] Initial port to v4.0