Whitespace and Resharper code issues.
Whitespace only
Don't use custom hostnames in the management tree when running on http://localhost (fixes #240)