Added allowRedirect function. Should return true if redirect is allowed or false otherwise
Updated followRedirect to support function as a value. Added unit tests
Merge pull request #989 from doronin/master

Added allowRedirect function. Should return true if redirect is allowed or false otherwise