Scotland midfielder Lewis Ferguson captained Bologna to an excellent fightback in the Champions League as they took down Borussia Dortmund 2-1 at home.