Generify text formatter

Make ITCH formatters more generic so the functions can be used for other
protocols as well.

Signed-off-by: Pekka Enberg <penberg@valotrading.com>
Merge pull request #106 from valotrading/features/generify-formatter

Generify text formatter