A Promise pattern based async programing toolkit