More layout for the TSMConnection class.
TSMConnection mostly done.

TSMConnection is mostly done. Some test should now be run to check API
usage scenarios.
fixed some usage bugs.
Some fixes of tsmconnection.

Added som TODO's for future improvements and some fixes.