Drop hg/Bitbucket support.
Add LICENSE file.
Rewrite tests to return 0 on success.