Expose Document to extension point IncludeProcessor

IncludeProcessor should be allowed to read Document
e.g. attributes.
Merge pull request #983 from aslakknutsen/include

Expose Document to extension point IncludeProcessor