Reorganization

Reorganized all modules. Also began to implement IMainTab interface to
pull elements into overall window structure.