Mixed mode source debugging

WIP. Need to change the command/reply model to make the logic easier to
deal with.