Compatibility with ruby 2.0

Passing true as second argument to respond_to? to check for protected methods in Ruby 2.0.
Fix smart redirects for compatibility with ruby 2.0
Merge pull request #263 from mehanoid/master

Compatibility with Ruby 2.0 (including smart redirects fix)