Convert setup.py to plain distutils and general cleanups.