Add retry_max_delay option

- add option
- add test

Fixes #395

#### Ready to merge checklist
- [x] Formatting (4 space tabs, consistent style to rest of code, etc.)
- [x] Test(s) in test.js
- [x] Test(s) will fail without PR but succeed once in place.
- [x] Update docs