Fix disconnecting nodes due heartbeat messages.

Among others it corrects and unites indentation in ruby files in simple-ruby-director.