add jl_yield, and a global way to set the root stack base from the embedding API

fixes #6006

add COPY_STACKS to options.h
update embedding example and docs