Refactors Server class and removes 'game' specific objects.  Adds unit tests.