Got php side of things working.

TODO: Handle Amazon HTTP errors.