Study finds many ailing seniors can bounce back to full well-being. Mental health proved the strongest factor.