Added support for accessing the error object. Issue #29 Thanks @alexandremblah
search mode
access HTTPClient via this in the onxxx callbacks or xhr will not be released
Merge pull request #33 from javenwang/fixmemoryleak

access HTTPClient via this in the onxxx callbacks