Add support for metrics in the DOF calculator. Update interface to remove the calculate button and instead do calculation implicitly whenever a parameter is changed.