Add test script for block command

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Merge pull request #290 from chriscool/test_ipfs_block

Add test script for block command
Update test/README.md about sharness directory

Now sharness is in "lib/sharness"
Merge pull request #291 from chriscool/patch-2

Update test/README.md about sharness directory
bugfix: swarm resolveUnspecAddr idiocy
log -> logf
move ipfs commands
copy to old location
move daemon temporarily
add a copy of daemon to be edited when creating new commands
core/commands: Added root command (with test subcommands)
server/http: Added HTTP API handler
server/http: Don't cast res.Error() to an Error (fixes panix on response errors)
core/commands: Added more advanced test subcommand
server/http: Fixed error when using long encoding option name
server/http: Use Response as Reader instead of manually getting output data
server/http: Set Content-Type header based on command output
cmd/ipfs: Rewrote entry point to invoke commands via new command API
cmd/ipfs: Deleted existing CLI commands (to be refactored for the commands API)
cmd/ipfs: Added HTTP RPC client to entry point