Add cow_date:parse_date/1 and move date parsing code there
Add cow_http_hd:parse_upgrade/1

From RFC7230.

Compared to the current Cowboy implementation we added support
for protocol-version. We return protocol-name/protocol-version
as a single binary as these will typically be matched directly.
Add test cases taken from RFC7230