Made stdout line buffered

Made stdout line buffered so that when we redirect the stdout of DRWAServer to a file we can see the results quickly.
Added main.py to automate the testing process

main.py automates the following stuff: compilation, clean up, set up or clean up tcp_probe, start or stop DRWAServer, redirect output to log files and status check.