using EscherRequest for sign, and other refactorings
remove create_algo calls, inline validate_headers, calculate_signing_key and get_algorithm_id
inline collect_headers
inline parse_query, and small changes