important code re-organization: split psphotEnsemblePSF into two functions, added general model capability, added sky offset fit