Reduce complexity per method average

Separated the temporary file build logic.  Separated tranformation.
Used plexus-build-api to allow usage in other environments.