- Documents now always have a maincontent.html as first "attachment".
- Fixed bug in downloading attachments.