API Enable reattempts for smoketesting

Useful if smoketesting should be forgiving of first-request timeouts, etc.
Set default to 1 to not allow reattempts.
Also now allow timeout to be configurable

Fixes #73