Restructure

Add tox, proper setup.py, and an entry point for that lonely script.

Fixes #1