data.headers: move config loading into register()

with a config.get() callback