refactored NODE_ADD_CALLBACK

added a visibility parameter
fixed RFC 2616 - 14.23 compliance

The HTTP connection needs to be closed by the server by replying with a
status code of 400 if the client doesn’t send a host field in the
header.
chanked "bool ok" to "int err" in callbacks