Make library methods asynchronous with bluebird Promises.