demo: relicense demo programs to MIT
docs: add license info for man pages
docs: add MIT license file to the distribution

We will be using the MIT license for code examples in the section 3 man
pages, which will be added in the following commit.
docs: initial revision of section 3 man pages