data.headers: move config loading into register()

with a config.get() callback
Merge pull request #586 from msimerson/data.headers

data.headers: move config loading into register()