Promisify async codes

https://github.com/kyoshino/bzdeck/issues/114