Blue Cross and Blue Shield of Massachusetts is proposing to overhaul the way it pays doctors and hospitals, in what company officials said is an attempt to slow runaway healthcare costs and improve quality. The insurer wants to stop paying providers for each patient visit or treatment and instead pay a flat sum per patient each year, adjusted for age and sickness, plus a significant bonus if the providers improve care.