Implementation of template pipeline detection
Tests for ensuring template sets a pipeline_file var on pipeline file detection
Fixing test and implementing Template.pipeline_file