xBuddy local vs remote path handling.

Explicitly check for local/remote in the xBuddy path and check for
and properly direct local requests.

Plus other bug fixes:
  - better defaults for paths
  - remove "latest-local" and use xbuddy/local/{b}/latest/{a} instead.

TEST=unittests, manual

Change-Id: I1baa7e6eab86249ab50d1e02a084ef1cdbf2fc98
Reviewed-on: https://gerrit.chromium.org/gerrit/62706
Reviewed-by: Ryan Cui <rcui@chromium.org>
Commit-Queue: Joy Chen <joychen@chromium.org>
Reviewed-by: Joy Chen <joychen@chromium.org>
Tested-by: Joy Chen <joychen@chromium.org>
2 files changed