A Promises/A+ implementation for Swift