Update the license header for every source file, as well as the documentation.

Fixes #1209
Merge pull request #1476 from alex/license-shenagins

Update the license header for every source file, as well as the documentation.