TRUNK-5369 Harmonize logging
* harmonize logging statements and log the moduleId so errors are easy
to link to the module
* merge catch clause by using a logging statement that works for all
catch clauses. No information is lost as the exception is passed to the
logger anyway.
TRUNK-5369 Add/improve javadocs
add a sample from a config.xml extension tag so its easy to understand
how extensionNames lead to the expansion of Extension's
TRUNK-5369 Rename method extensionsMatchNames
to isNoNeedToExpand() to better reflect what it is doing as it does not
only check whether the extensionNames match the extensions