A Ugandan court has handed down a life sentence for the mastermind of twin bombings targeting football fans in Kampala that killed 76 people.