Improve chat signature system
This MR adds/fixes support for 1.19 chat related changes. It is mainly focused on signature changes and refactor.
Implemented:
- signature for communication commands (e.g. `/msg)
- most of 22w42a signature changes
- Lots of signature tests
I could still implement message verifying.
Has also some other fixes in it.