Basic support for max-retries; Fixes #10

Not sure if we want config settings in a specific order, or if we want to raise a more specific exception on error.