Longids: compiles and segfaults nicely

Reactivated signatures, few helper functions

Groupchat ids are mate by combining two keys
Working and tested signatures