Implement thread format specification

This allows the system not to have to convert everything to HTML when storing thread content