Merge pull request #4 from Connexions/fixes

Fixes link between publications and pending documents
Publish documents with resources