[WIP] [RFC] Libs for physical quantities.

This is a repost of parts of #3621; without systems integration, so that new code can be written and old code integrated on the go; in addition weight, volume, and energy libs will be forthcoming.