Introduces a `Configuration.has_option(section, option)` that checks for the existence of an option somewhere in project trac.ini file, inherited trac.ini file, or in the options registry.
Updated method documentation + added some tests.
Closing #4977.