Added context for config handlers

See #116 for rationale for this PR.