Add new scope name for configuration

@nedbat @cpennington This is the work on adding a named scope for configuration.
Should the particular exception type be overridable, so that individual routing subclasses can throw derivative exceptions?