add Connection#stream function for streaming responses into files

refactor Chef Auth middleware and test it