Improve redirection during validation/account sync.

For validation, return the redirect host so the app can
handle that.
For sync, write the new address back to the DB.

Change-Id: Ifa59aa03a25c251ec37e71768e357c62c6a45576
2 files changed