Various License and Packaging Fixes

This pull request includes the following:

- Fix issues faced during Debian packaging.
- Add license header to all source files
- Update copyright information
- Re-license `__main__.py` to AGPL3+ like the rest of the package. @fonfon, need your approval for this one.