fs: extend reported types in  uv_fs_readdir_next

Support all possible types on Unix, and files, directories and links on
Windows. Some systems (hello SunOS!) don't have the d_type field on struct
dirent, so mark them as UV_DIRENT_UNKNOWN.
unix: fix colliding flag value

Fixes #1425
unix: read on stream even when UV__POLLHUP set.

This fixes a SmartOS specific issue that happens when reading from
a stream that is the reading end of a pipe that has been closed by
the parent process.

In this case, a UV__POLLHUP event would be set on the stream and would
prevent the event loop from closing it. As a result, the event loop
would think there are stil handles open, and leave the process
hanging.

Fixes #1419.
2014.08.20, Version 0.11.29 (Unstable)

Changes since version 0.11.28:

* windows: make uv_read_stop immediately stop reading (Jameson Nash)

* windows: fix uv__getaddrinfo_translate_error (Alexis Campailla)

* netbsd: fix build (Saúl Ibarra Corretgé)

* unix, windows: add uv_recv_buffer_size and uv_send_buffer_size
  (Andrius Bentkus)

* windows: add support for UNC paths on uv_spawn (Paul Goldsmith)

* windows: replace use of inet_addr with uv_inet_pton (Saúl Ibarra
  Corretgé)

* unix: replace some asserts with returning errors (Andrius Bentkus)

* windows: use OpenBSD implementation for uv_fs_mkdtemp (Pavel Platto)

* windows: fix GetNameInfoW error handling (Alexis Campailla)

* fs: introduce uv_readdir_next() and report types (Fedor Indutny)

* fs: extend reported types in uv_fs_readdir_next (Saúl Ibarra Corretgé)

* unix: read on stream even when UV__POLLHUP set. (Julien Gilli)
Now working on v0.11.30
unix: fix tcp write after bad connect freezing

If the connect wouldn't go off (no such tcp remote or any other failure),
the subsequent writes made would not be called. Now we call the writes
in the queue with ECANCELED if the connect fails.

Fix #1432
unix: fix exposing EAI_* glibc-isms
unix, windows: move includes for EAI constants
test: fix watcher_cross_stop on Windows

All send callbacks are not necessarily called on the same loop iteration
as the data is received.
build: remove unneeded define in uv.gyp

It's a leftover from the days libuv bundled c-ares.
build: use same CFLAGS in autotools build as in gyp

Closes #1362
unix, windows: add uv_fileno

Returns the platform specific file descriptor for handles that are
backed by one. The datatype is abstracted as uv_os_fd_t, which maps to
int on Unices and HANDLE on Windows.

Users can use this function to set specific socket options, for example,
in a non portable way.

This function is essentially a shotgun, you better be careful with
whatever you do with it, don't blame me if you used it to get the fd of
a stream, close it yourself and expect things to Just Work.
windows: make sure sockets and handles are reset on close

Set the socket to INVALID_SOCKET foir TCP and UDP handles and
the handle to INVALID_HANDLE_VALUE on TTY handles after closing them.
windows: fix buffer leak after failed udp send

Fixes #1426

Signed-off-by: Saúl Ibarra Corretgé <saghul@gmail.com>
core: update version to 1.0.0
doc: update README with versioning information
core: add a reserved field to uv_handle_t and uv_req_t

Just in case we need to work hard in keeping ABI compatibility.
windows: remove duplicated field

Fixes build
windows: remove duplicated field

Fixes build
unix: simplify how process handle queue is managed