Tidy up the repository.

Test code is now in its own folder. I improved the README and added a license
(MIT.) I also deleted an old script used for trials some time ago. Also, thanks
to `setup.py` it is now easier to install the module.