Whitespace and Resharper code issues.
Whitespace only
Don't use custom hostnames in the management tree when running on http://localhost (fixes #240)
Remove syntax error (fixes #242)
Merge pull request #243 from bherila/master

Fixes various issues