Barebone Promise/A+ implementation