fix specs to account for 1.8/1.9 differences in Array#to_s

in Ruby 1.8 Array#to_s is basically an alias for #join, but in 1.9 it changed
to an alias for #inspect.
Merge pull request #10 from simonista/fix-specs

fix specs to account for 1.8/1.9 differences in Array#to_s
Allow overriding just the timeout method

This separates out the building up of the http request from the code that
actually runs it with timeout protection, so that just the timeout protection
portion of the transmission can be overridden.
Override timeout_protection with configuration

Instead of overriding by just monkey patching the module, this allows passing
in a proc with the configuration.