Revert "added root-subdomain option; refactoring"

This reverts commit e4b20549f96abc1999296c14e1815e1e729b6e44.