Add support for XEP-0115. Closes #48.