Add handling of redirects

Change-Id: I2f45bb920588bd3e2718d9dc955b4c1dcf04f621
Signed-off-by: Andrew Clement <aclement@linuxfoundation.org>
Merge "Add handling of redirects"