added ethernet sketch for arduino, edited server to introduce heartbeat to detect disconnections