Add license headers, switch to MIT license*

*we currently rely on Arduino libraries which are LGPL.
This is documented in the README, and mentioned in the relevant files.