refactoring and fixes to Tmx.Server; most ids are now guids