Extracted more code into Request.
Serializing transaction XML.
Process failed requests.
Added magic comment for Ruby 1.9.