Added a new class to allow system testing

dependency injection, replacing MainGui.