Added support for simple hostname restrictions and corrected a minor issue when the CMS module did not exist.