prettify codes: use common macro
use macro instead of copy and pasted codes
add ares_gethostbyname testcase
add ares_getaddrinfo testcase
add uv_idle test case
add uv_spawn testcase
add uv_rwlock test cases and improve uv-rwlock functions
improve uv_mutex functions and add test case
fix windows compile error
add proto comment for uv_mutex
fix debug macro
change uv_read_start signature.
add uv_shutdown
fix idle test case
fix gethostbyname_cb test
for now, add uv_read2
PHP_UV_DEBUG should be 0
add pending parameter.
fix request example
for now, force remove resource when calling uv_close