[snap/#1513] Introduce a Pipeline section

* Add a stage section
Change the look of pipeline definition to match that of other definitions
[snap/#1513] Introduce a Pipeline section

* Add info for tasks and environment variables.