*: add license header to all source files

h/t @johndeng for raising this in #305
Merge pull request #307 from jonboulle/license

*: add license header to all source files