Full chat sample. Doesn't work yet.
Signed protocol API refactored.
Bugfixed, but gives segmentation fault sometimes.