factored out edit_{{sample}} and publish{{sample}} files

This removed two files per invitation