Refactor JabberBot connection to work with gunicorn