add liblight from cm

and some other small changes
Mark internal storage as primary.

Change-Id: I5a985dbddd7010db80c07202ae7811f0d99d0a13