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>
simplify

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