Merge pull request #17 from avnik/an/features

Handle death of agent process and shutdown tunnel
Use private /tmp
setpgrp not needed now

Not working when spawned as daemon, w/o terminal