A dead man's switch server implementation in Rails