Add PID file and proper cleaning of resources in abnormal exit
Look fot HTTP POST too

Taken from:
  https://github.com/ashirley/driftnet/commit/1744e18cb9da0307f2e10ee1868aee9b5fe58af7
Fix bug in calculation that leads to add instead of subtract