Add --quiet option to ipfs add

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Add sharness test for ipfs add --quiet

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
fix for #381
cleanup useless debug statement
Merge pull request #396 from jbenet/idcmd-fix

Fix ID command lookups of unconnected nodes
Validity time not checked properly

name publishing was failing of bad format.
Merge pull request #401 from zignig/namesys_fix

Validity time not checked properly
Merge pull request #372 from chriscool/add_quiet_flag

Implement the -q or --quiet flag to add with minimal output
beginnings of a bitswap refactor
dont panic on empty wantlist
test(bitswap)

@whyrusleeping This appears to be a timing issue. The asynchronous
nature of the new structure provides has the bitswap waiting on the
context a bit more. This isn't a problem at all, but in this test, it
makes the functions return in an inconveniently timely manner.

TODO don't let the test depend on time.

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
events(bitswap) try the new event logger in the bitswap GetBlock method

@jbenet
@whyrusleeping

Let me know if you want to direct the eventlog output to _both_ the file
and stderr. Right now it goes to file. Perhaps this is just a minor bip
in the larger discussion around log levels.

https://github.com/jbenet/go-ipfs/issues/292

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
fix(bitswap) handle error

@whyrusleeping

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
fix(bitswap) consistent event names

@whyrusleeping @jbenet

since the logger is created with package scope, don't need to specify
the package name in event messages

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
fix(log) ->f

@whyrusleeping

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
use event logger here too?

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
clarify MessageReceived contract

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
naming

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
constify to make it clear what _can_ and _can't_ change over time

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
some renaming

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>