Fixed JS code layout: was barely readable
Detect escaping / encoding problems
Improved the escaping checks:
- the single quote may not be properly escaped, so test that too
- we don't need to test all transports at once, it's redundant
Open files in binary mode otherwise we get a corrupted flash file on some platforms (windows)
Limit the test duration to avoid blocking the other tests
Activate socket.io.js debug mode in the tests