function load(data) {
  const state = new BackendDoc(data)
  return {state, heads: state.heads}
}
Loads the document and/or changes contained in an Uint8Array, and returns a
backend initialised with this state.