Wrap xmpp-ftw up into the API server

This time merging into the develop branch