Add transformation stack object (TStack).

Adding the TStack data type allows the removal of the last little bit
of the SDK/common/matrix.* functions, further allowing us to delete
those files from all of the builds.