Fix tests after port change.

The only change to the configuration file is the port number, tests
needed updating to reflect this.

Add constants module.
Log level is an enum.