client: wip

draft. works. 
@bmizerany @unihorn 
Can you do a simple check to make sure we don't infinitely loop through redirects?