Made connect functions return NULL on alloc failures.

Updated documentation and examples accordingly.
Prevent AsyncConnect from crashing on memory allocation failures.
Merge pull request #147 from hdoreau/d7e3268f48b457cb52336d264f8860b336faea9f

Prevent hiredis from crashing on memory allocation failure