Add generate_api_output_examples.sh
Make httpie output redirectable to a file
Fix some tests