This was intentional change for 2.2.x branch. Unit tests with server.js were broken there. So fixing them as part of this commit as well. Now all of the unit tests pass (node test/server.js, node test/jasmine-test/server/specRunner.js and running jasmine client SpecRunner.html in a browser).

I've also added comments in server.js, so merging up to 2.3.x also shows up as few changes there.