Pattern builder fixes

 * Fixed problem with format regex, now supports {}
 * Added flywheel for format patterns
Work line by line, only print messages that could not be parsed.