Update logic for reading from stdin for node and perl scripts.
Refactor language scripts and depend upon ruby >= 1.9.3 so that json
quirks mode is supported.