Merge pull request #326 from okfn/322-document-plugin-warnings

Looks good. Merging.

Backported to v1.2.x.

Conflicts:
	src/plugin/document.coffee
	test/spec/plugin/document_spec.coffee