Added new producer for processing document sent as request payload. Also allowed Cocoon to be called as an external module even if this is clearly a dirty hack.