Fixed config.py such that if Port is None, it uses just the domainname. Fixed test.