Updated license on the library source code to Apache2 + GPLv2+. Examples, tools and test are still AGPLv3.

Fixes #56.
Merge branch 'master' of github.com:davidmoreno/onion