Add thermodynamic potentials

Not ready to be merged. Opening for comments/suggestions.
Really? I think pressure is a good name, but there's already a heavily used class attribute called pressure. Will this not be a bit confusing?