Channel data scaled to better fill 10 bit range

Data is now scaled to better fit the 10bit space (previously was 1/16
short of 0x1111111111 max). Refactor of bit_compress procedures to save
some memory and make code cleaner. Lux calibration updated to match new
scale.
Compress code bug fix for first stage

Mixup with and/or for the lowest level of light in x16 gain mode
leading to a +64 offset in the data set for the minimal range of light
levels.
Fix bug introduced in daily light goal logic

Program flow changes were going through test that were previously
avoided after clobbering tmp2_word with some other work value causing
goal to be indicated as reached incorrectly.
Tweaks to some comments
Code cleanup