MULE-8018: Merge http connector code cleanup

One approach I have seen is to attempt to get the size of the response socket buffer and use this and in this way do chunk using the size most optimal for the socket/netowor, we can tweak this later though.