[wip] Add command API, command handling and event sourcing infrastructure