Add cow_http_hd:parse_{connection,content_length,transfer_encoding}/1

Initially imported from Cowboy, then optimized.
Add cow_http:parse_{status_line,headers}/1

Imported from Cowboy and then optimized.