Add pipeline module

Reorganize for setuptools distribution