Code to add event. 

Doesn't work yet fully, some access control issue: 
Only the provider may write to calendar_access_level