Promises/A+ micro library (extracted from abaaso)