Changes to support Perforce workflow

- version is now an optional parameter in all templates
- added primary task parameter to secondary publish hooks
- added primary and secondary tasks to post publish hook