Added commands for averaging.

Four commands allow switching V and A measurements between single-sample
and 128-sample averaging.