do not debug contents by default (no reading of the body unless logger.debug?)
+ some internal cleanup - preparing to use "true" thread-locals
use "true" Thread.current.thread_variables when available (esp. for future JRuby 1.7+)
travis-ci test with Ruby 2.1