Fixed minor bugs. Start on rewriting of the Coroutine handling, this to remove the global stack of active coroutines.