set-state doesn't need to be passed the previous state. it's managing it.
properly prefix org-e-caldav even abstract org-element functions
Add debug messages to functions, which change stuff.
load and write state from file during a sync cycle.
better comments and function ordering (no programmatic changes)
minimal cleanup in set-state