Overhaul of thought processing; now supports unicode, sanitizes, uses YAML metadata
thought template: Put the tags and title in a header