Corrections for ruby 1.8.7 support

* hash & proc argument syntax
* Array#keep_if and RUBY_ENGINE do not exist
* Accept-Encoding is not included by default
whitespace
Merge branch 'feature/ruby187'