Promise/A+ compliant AS3 library