Foundations of Potential Theory