Move commands to module and use setuptools entry points.