Incremental counter for jobs

And:
- bmod_storage: storage.set() takes an argument "version"
- bmod_state: state.add_previous() uses a version of the event at saving