Merge pull request #22 from wtsi-npg/master

pull tag from master to devel
propagate caller environment to scriots running under daemons, warnings tidied up, PBP
Merge pull request #23 from wtsi-npg/devel

pull changes from wtsi devel to wtsi master - mainly changes to deamons