XBuddy path rewrites.

Set up default path rewrites.
Rewrites can be overridden by changing xbuddy_lookup_table.py

BUG=chromium:265917
TEST=manual
Attempt some of the default lookup paths defined in
xbuddy_lookup_table.py.
http://host:port/xbuddy/ --> serves latest local test image if it exists
http://host:port/xbuddy/ld --> serves latest local dev image if it exists
http://host:port/xbuddy/stable-update
http://host:port/xbuddy/paladin

Change-Id: I925ba37f3bfe6e61675aa35e0d89b837c8d5f0f3
Reviewed-on: https://gerrit.chromium.org/gerrit/63772
Commit-Queue: Joy Chen <[email protected]>
Reviewed-by: Joy Chen <[email protected]>
Tested-by: Joy Chen <[email protected]>
diff --git a/devserver.py b/devserver.py
index 6a35cfc..259b1a2 100755
--- a/devserver.py
+++ b/devserver.py
@@ -789,6 +789,9 @@
     The HTTP request should contain the standard Omaha-style XML blob. The URL
     line may contain an additional intermediate path to the update payload.
 
+    Paths that can be handled by xbuddy are formatted:
+    http://myhost/update/xbuddy/board/version
+
     Example:
       http://myhost/update/optional/path/to/payload
     """
@@ -1072,8 +1075,10 @@
     return
 
   _xbuddy = xbuddy.XBuddy(options.xbuddy_manage_builds,
+                          options.board,
                           root_dir=root_dir,
-                          static_dir=options.static_dir)
+                          static_dir=options.static_dir,
+                          )
   dev_server = DevServerRoot(_xbuddy)
 
   cherrypy.quickstart(dev_server, config=_GetConfig(options))