[#1558] Corrects handling of port number in WebSockets handshake header values

* This patch was inspired by the work of @golovnin
[#1558] Use correct scheme to detect port. Thanks @golovnin for spotting it.
Allocate buffer from ByteBufAllocator in ChunkedFile
Merge remote-tracking branch upstream/$:{upbranch}