Refactor transforms

* Move all of the transforms to lib/transforms
* Add paca.addTransform() to allow extending the paca stream from the
  outside