Adding first version of environment.py for tests.
Moving generic topo server to environment.
Small fixes.