Change node/server timeout to time based

Nodes now disconnect from server if a KEEP_ALIVE isn't received
within 0.5 seconds from sending one. Server now disconnects if a
KEEP_ALIVE isn't recieved from a node within 1 second.

Add looping over multiple nodes. This needs to be tested before it
can be verified.

Issue: #18
Issue: #17