compose_retries implemented

It combines multiple can_retry function to a single function
Merge pull request #498 from rackerlabs/retry_compose

compose_retries implemented