add Retry middleware for retrying failed requests
add retries to file streaming
configurable retry interval
Merge pull request #66 from reset/retries

add 'retries' to connection