Add client support for redirects

Fixes Issue #139