Only recent authors can publish a collab doc

Only users who recently editted a collaborative document can publish it.
This should avoid situations where a user who is only viewing a document
triggers a publication under his name even if he did not make any
changes himself.
Fixed up failing unit tests for publishing collaborative documents