A bare-bones lazily-evaluated Promises/A+ implementation.