Initial fitting framework.

Still much todo. Mass fits are OK but IPCHI2 fits will require a
"pre-fit" to MC to get shape parameters.