A simple "Promises/A+" compliant promises implementation