A set of changes

A set of changes including making it possible to print cURL commands that can be used to reproduced requests; useful for debugging.