The violence in the north has loomed large over Nigeria's election campaign, adding to tensions in what is shaping up as one of the closest races in years, pitting struggling incumbent President Goodluck Jonathan against Muhammadu Buhari, a former military ruler who has vowed to vanquish Boko Haram.