GNS-42 - Move deadman switch into gns3server codebase

This is the code from the gns3-dms codebase.  Moving it into the server codebase since scripts here rely on it.