thmsg: Refactor format finding to inherit formats from previous games.
thmsg: Add support for TH14.

While the Reitaisai trial version used a message format identical to th13, the web trial version introduces parameters to some older functions.