Port MOSREF 'fork' command from mosvm
Merge pull request #6 from doublec/fork

Port MOSREF 'fork' command from mosvm