rename Invoker to Connection, and add Response class
ruby 1.9 compatibility