scilib/lsqmdl.py: untested multi-component modeling framework

I'm not happy to be committing this without a use case, but I put a bunch of
work into it and I don't want to lose it. I'll fix it or delete it if it
doesn't work in practice.