ok, where to begin....
SCIRE_CONFIG_FILE is no longer a constant so it can be overriden via commandline
basic commandline parsing
helper function for sending/receiving and creating the connection
move my test code into run_test() function
temporary connection_command override for development
fix a few syntax errors
random other changes that I can't be bothered to think of