Limit recursion depth when redirecting

Convenience API's get function will follow redirects. Limit this to a
depth of 5 hops.