Implemented retry.wrap for #6, also added tests and documentaion

The readme should include that the "options" object can take any options that the usual call to retry can take.