More conversion of APIs to work either callback- or promise- style.