Add cow_http_te:decode_ret() type and simplify it a little
Use a lists:keystore where appropriate
Update cowlib to 0.6.1

Minor tweaks to types and code.