Sets a pipeline_id on a definition which passes through to the template

@mattgillooly Allows supplying a block to `#deploy_pipeline` and uses it in the deploy rake task.  Passes the pipeline ID through the definition to the template.
Ah, I missed how this is passed in from `#deploy_pipeline`.  Perhaps my suggestion doesn't help in this scenario.