examples/storage/mdb

Fixes mdb_init, mdb_stored, and mdbd to avoid using the anonymous profile.
Instead uses the VEYRON_IDENTITY variable.

Also fixed the Dir.tmpl, Movie.tmpl, and Person.tmpl templates loaded into
the store. They had bad links and Movie was not showing the Cast and Reviews
properly.

To run the example, use these commands:
0: Make sure you have an identity. The commands below are based on a file named
   myorg containing the identity. (./go/bin/identity --name "myorg" >myorg)
1: Compile with ./scripts/build/go install veyron/examples/mdb/...
2: Start the Mount Table (on port 5167). ./go/bin/mounttabled --address=:5167
   Or any other port; just make sure a mounttable is running.
3: VEYRON_IDENTITY=myorg MOUNTTABLE_ROOT=/localhost:5167/mt ./go/bin/stored
4: Run mdb_init with the address printed out by stored. (replace the one below)
   VEYRON_IDENTITY=myorg ./go/bin/mdb_init --store="/@2@tcp@[::]:52732@cdc1a13c20d004f40d9dc0e18a75f7cd@1@1@@" --templates=go/src/veyron/examples/storage/mdb/templates --load-all
5: Run mdbd with the same address
   VEYRON_IDENTITY=myorg ./go/bin/mdbd --store="/@2@tcp@[::]:52732@cdc1a13c20d004f40d9dc0e18a75f7cd@1@1@@"
6: You can explore the data in the browser at http://localhost:10000

Change-Id: Ic7473a1a0946977c29a2f0e0d40b3bd0f6c83b96
4 files changed
tree: 6e57bb29919467bb4cf8acce1bcee39d9a3da7e2
  1. examples/
  2. lib/
  3. runtimes/
  4. security/
  5. services/
  6. tools/