Preparation work to have a promise-based XAPI connection.