veyron/lib/modules: Make modules parse flags using the veyron2.Init
flag parsing mechanism.

Now the user of modules need not call veyron2.Init to parse the flags,
whereas before the flags had to be parsed before calling dispatch.

The profiles can now use the flags passed to a subcommand whereas before
they could not.

Upcoming changes:
(1) Make the rest of the callers to testutil.Init use go1.4's TestMain to avoid
flags being parsed in init functions.
(2) Get rid of modules.DispatchInTest and use go1.4's TestMain instead.

Change-Id: I71e31929a674dfc11310d203aba452a69c10b2b2
35 files changed
tree: a61e2722eccecc04b9bcb24cbd1000be09fe0ab3
  1. lib/
  2. profiles/
  3. runtimes/
  4. security/
  5. services/
  6. tools/