UserManager.setDataOfSpaceWithDest uses the server version of the function to reduce duplicate code. (TODO: reuse more functions, reduce duplicate code.)
The server function on the other hand is now capable of modifying the db entries if already existant.
This leads to a more reliable saving of paperChapterIDs now (they can be updated!), which are now stored as an array.
The export object however now gets "all" chapters of a paper, even though maybe in wrong order (due to async calls; TODO: fix this.).
TODO:
- add some styles
- use templates
- use wkhtmltopdf's combining multiple documents feature
- export to text

Exchanged the paper icon with the version with transparent background.