reindent
preliminary profile support
new Text API: avoid globals.
drop old stuff from the Plush original code.