Added MathFreeEnergy and tests for #4476

Adds MathFreeEnergy, which is the same free energy from MathCH, but implemented as a material. Closes #4476
This test is not strictly necessary as the method is only called for couple variables and there is only one of those in this kernel, but maybe this is to illustrate (then see comment above).