Added the notion of a context for a promise chain. The context at the time a promise is created is available when the
promise starts executing.