More refining of prototype classes and functionality.  Added a simple wrapper for creating XML elements.