Inline documents using their full path

Idea is to pass the document's root directory to the inline function,
and always form absolute paths while recursively inlining.