Fix Pre-Signed URL

The Pre-Signed URL handling is broken.  This patch fixes it and adds unit tests
for it.

Change-Id: I7e94eb0e575c9b6ce8472de1dd0b90247457b44b
Merge "Fix Pre-Signed URL"