veyron2/vdl: New API for generated Go interfaces.

The main change is for generated streaming methods on the server side.  Here's
how they used to look:

  Count(ctx ipc.ServerContext, start int32, stream ArithServiceCountStream) error

Here's the new way:

  Count(ctx ArithCountContext, start int32) error

Instead of passing in a context and stream separately, we're now
passing them together.  This keeps the client and server
interfaces more uniform, which helps simplify the generator
logic, and may be useful for the new Signature implementation.

There's also lots of renaming.  In the new scheme, if the user
creates a VDL interface Arith, all generated funcs and interfaces
start with Arith.  This means we'll support unexported VDL
interfaces "for free", and also improves generated godoc by
grouping things together.

Here's a renaming cheatsheet; given a VDL interface Foo with one
streaming and one non-streaming method:

   type Foo interface {
     XXX()
     YYY() stream<a, b>
   }

   type Foo_ExcludingUniversal -> FooClientMethods
   type Foo                    -> FooClientStub
     func BindFoo()            -> FooClient()

   type FooService       -> FooServerMethods
   type ServerStubFoo    -> FooServerStub
     func NewServerFoo() -> FooServer()

   type FooYYYCall -> FooYYYCall
                   -> FooYYYClientStream

   type FooServiceYYYStream -> FooYYYServerStream
                            -> FooYYYContext

Change-Id: I48e9dd2ab676da50f9c989368ed849e2d0e95256
diff --git a/services/mgmt/binary/impl/impl_test.go b/services/mgmt/binary/impl/impl_test.go
index a38ef40..886674c 100644
--- a/services/mgmt/binary/impl/impl_test.go
+++ b/services/mgmt/binary/impl/impl_test.go
@@ -33,7 +33,7 @@
 
 // invokeUpload invokes the Upload RPC using the given client binary
 // <binary> and streams the given binary <binary> to it.
-func invokeUpload(t *testing.T, binary repository.Binary, data []byte, part int32) (error, error) {
+func invokeUpload(t *testing.T, binary repository.BinaryClientMethods, data []byte, part int32) (error, error) {
 	stream, err := binary.Upload(rt.R().NewContext(), part)
 	if err != nil {
 		t.Errorf("Upload() failed: %v", err)
@@ -65,7 +65,7 @@
 
 // invokeDownload invokes the Download RPC using the given client binary
 // <binary> and streams binary from to it.
-func invokeDownload(t *testing.T, binary repository.Binary, part int32) ([]byte, error, error) {
+func invokeDownload(t *testing.T, binary repository.BinaryClientMethods, part int32) ([]byte, error, error) {
 	stream, err := binary.Download(rt.R().NewContext(), part)
 	if err != nil {
 		t.Errorf("Download() failed: %v", err)
@@ -95,7 +95,7 @@
 }
 
 // startServer starts the binary repository server.
-func startServer(t *testing.T, depth int) (repository.Binary, string, func()) {
+func startServer(t *testing.T, depth int) (repository.BinaryClientMethods, string, func()) {
 	// Setup the root of the binary repository.
 	root, err := ioutil.TempDir("", veyronPrefix)
 	if err != nil {
@@ -133,10 +133,7 @@
 		t.Fatalf("Serve(%q) failed: %v", dontPublishName, err)
 	}
 	name := naming.JoinAddressName(endpoint.String(), "//test")
-	binary, err := repository.BindBinary(name)
-	if err != nil {
-		t.Fatalf("BindBinary(%v) failed: %v", name, err)
-	}
+	binary := repository.BinaryClient(name)
 	return binary, fmt.Sprintf("http://%s/test", listener.Addr()), func() {
 		// Shutdown the binary repository server.
 		if err := server.Stop(); err != nil {