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.