Created draft UI class to handle tm_dialog widgets
Rewrote Tidy/Validate commands in native PHP