HTTPCORE-370: Race condition if connection request succeeds and times out at the same time

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk@1563155 13f79535-47bb-0310-9956-ffa450edef68
Code consistency: tolerate lone LF at the end of the chunk

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk@1565591 13f79535-47bb-0310-9956-ffa450edef68
Refactoring of HttpAsyncService
HTTPCORE-372: Chunk decoders to throw an I/O exception if data stream is terminated without a closing chunk
Contributed by Dmitry Potapov <potapov.d at gmail.com>