Add retry logic to all methods (fix #5)

Add a retry option to all methods, which will cause the method to retry if the response contains a retry-after header.