Added x_new_thread, and brace support to while.

x_new_thread is experimental and undocumented. It is for testing purposes only, and is subject to removal, renaming, or incompatible changes.
Merge origin/master