Creates a new context object with the specified |settings| and optional |handler|.
See Implementation
Creates a new context object with the specified |settings| and optional |handler|.