Add setup.py and versioning

And tidy up the naming to follow the project now that it packages
cleanly.