Switch to using most recent flask-restless.

Required some changes to work corretly.
Fix bug: when uploading events are treated as variables