Almost done converting 'xform' to a BASH pseudo class. Only a few more
functions to embed in the class body.