client: Auto-reconnect with an exponential back-off

Use smarter and more standards-compliant ReconnectingClientFactory
that keeps the client connected after connections failures.
Merge pull request #26 from nirs/reconnect

client: Auto-reconnect with an exponential back-off