Refactoring to support optional opening of browser window.
Remove unused code.
Tidy up AssemblyInfo.cs
Adding unit tests.

- required a bunch of refactoring; everything's broken.