Mocked up first draft of metab.optim.

Also added metab.optim.ts outline to fill later.
Outline of o2.sat function added.