fix test server
add pistats
add timeouts to socket
bump port to 3001 due to mac blocking port 3000
add socket killing for superuser