First pass at refactoring SED fitter

Not all modules are done yet (far from it) but this branch should be functional, and better compared to the current version.