Implement spawning of processes

Processes can be spawned and waited for. They are not automatically
restarted yet.