Add VM switching API.
fix JSmodlue
Merge pull request #381 from tetsurom/SwitchVM

this is an API for using built-in virtual machine