improve connection tester a bit, to deal with being unchoked
fix missing include
generalize command line parsing of connection_tester and add feature to serve corrupt pieces every now and then