Added scheduling API for interruptible tasks.
Added interruptible pathfinding over multiple frames with test.