Allow for RFC 2616 chunk extensions

According to [RFC 2616](http://tools.ietf.org/html/rfc2616#section-3.6.1), chunks can have extensions. This patch just parses the chunk size and ignores the rest of the line. It also allows for websites I have encountered which have extra whitespace between the size and CRLF.