Fix JSON handling
Add main to StressTestServer for easy testing
test scripts