Ability to set document.domain in the config files (see #440)
Merge commit '0517ccd19987'