refactoring to Tmx and Tmx.Server; removal dependencies on System.Management.Automation from where it's possible