Task workflow adjustments. Documents in a closed dossier should not be editable.

This PR fixes #46 
The Modify portal content pernission is now aquired by the task workflow, so the permission for documents in a task are controlled by the dossier workflow.

@lukasgraf could you take a look?