Implemented TSMCommand and some more.

Implemented TSMCommand, improved TSMCredential, added some
TSMCommand/TSMDataReader interaction functions.