Bursting dynamics in a population of oscillatory and excitable Josephson junctions.