Use dicts in set_event(). It's easier to set flags that way.
Merge branch 'master' of github.com:ddsc/ddsc-core