log all errors

Signed-off-by: Victor Vieux <vieux@docker.com>
Merge pull request #199 from vieux/log_errors

log all API errors