The current scheduler always schedules tasks locally. We need to look at the task itself and make an educated decision about where to schedule it. Required for #65 and #66. See also #96, #97, and #98.