Xep 0122

Support for XEP-0122

Added extensions objects and added consistency checks.