Serialize return code correctly in binary form, minor cleanup
Fixes for travis CI

 - don't support jruby (not compatible with thin/thrift v0.9.1)
 - support ruby 1.8 regexp with missing \h