[WIP] Persistence of documents and marginalia 

- Does not properly retrieve yet
- Requires fixing of the setActiveAnnotations thingy