Merging publish pipeline

Putting in my initial commits and fitting with Ivan's publish wps