Fix compatibility with Ruby 1.9.3
Fix Config.ttl
Use Bundler for test dependencies.