attempt port of goon process scheduler.

Still WIP
What's wrong with the existing logging functions?