Add docinfo API in extension

Resolves #1162
Oh, wait. I think docinfo_processor_extensions should be a map, with the key being the position. We still define them statically, but at least we aren't hardcoding the position into the field.