Unifying Probabilistic Reasoning, Learning, And Classification With Circuit Representations