Refactor for Rails 3 log format.
Remove debug puts call.
Merge branch 'rails3-log-format'
Update REAME.
Use more current Ruby idioms and respect STDOUT/STDERR or pipelining.

* Added stdout/stderr to all calls to puts.
* Updated the Kernel#gets loop to explicitly use ARGF.
* Eliminate the use of special globals ($ variables).
* Use more appropriate exit code for Errno::EPIPE errors.
Wrap application in class and improve exit codes.
Merge pull request #7 from bradland/master

Rails 3 compatible version