A Novel Framework for Uncertainty Quantification via Proper Scores for Classification and Beyond