Redesigned the scaling Algorithm

Redesigned the scaling algorithm to match new data structure.  Also
implemented new data flow mechanism for analog in, analog out, digital
out, temperature, and analog out components.  Added AO scaling feature.