Add new `jid_is_valid()` function and improve the adherence to XMPP RFCs in jid_create(). Add unit tests for them as well.
tests/prof_cmocka.h