i218: setup.py does not understand --prefix

Modified setup.py to more tightly integrate with distutils. Custom
commands were implemented as subclass of Command.