Add attribute to control which substitutions are performed on docinfo files

Resolves #405
This method is similar to https://github.com/asciidoctor/asciidoctor/blob/master/lib/asciidoctor/substitutors.rb#L108 but I didn't know how to refactor the code to reuse it.