libbladeRF: [WIP] < 1/3 through review of LMS code.

Minor aesthetic changes, jotted down a few notes, additional input
validation.