This MR implements the SED fitting described in RAP-791. The average normalization is calculated but is not yet written out (this is to be done as part of RAP-792).