First step of Refactoring for modularization
 - Moved most of the classes in coherent namespaces.
 - Renamed some classes to correct names
 - Moved text editor specific functionality away from the base Tab class