Factor out getDocument for model view
Now we got model view
We had models as well :)
Some more refactoring
We needed the PK
Now we have saving (test)
Now we can create new docs