fix delete while posting
test that fails to edit unpublished ride twice
clean flags for all older versions
upload latest version first
store new version when deleting