Add logging

Make all of the parameters in create_order() and
create_secret() optional except for mime_type