Added run_in_sub_ctx() to our API:

Allows us to run a codeRef in a new subcontext. During the execution,
the notion of current context is set to the new subcontext, and at the
end, we revert back to the previous value.

Signed-off-by: Pedro Melo <melo@simplicidade.org>