add onreadystatechange to document

The purpose of this is to eliminate the need for the user to include <body onload='init()'> in their html page. It still needs to be tested.
rebuild lib/Greenhorn.js
make document readystatechange work