Re-license under BSD ...

... with approval from original author Daniel Fernandes Martins.
This uses the same license terms as in the `rewrite` branch.
Also use some of the same metadata for setuptools.