Move all thread specific functions to internal api.
Standardize public api.
update linux_mt/linux example programs.

This update is the beginings of supporting a thread instruction and having the interpreter automatically start a new thread.