[WIP] Add basic order edit functionality to backend

> Note: this code depends on changes from PR #1860.