Refactor Mineral into MineralConfig so that it's a bit clearer what it is.

Also clean up some un-used methods and make it into an atomic class.