Change license: GPL v3.

(we are using/importing some code from GPL v3 projects, this is viral)
Add a test suite