Expotential backoff for reconnection

Contains basic logic for using exponential back-off, instead of delay for reconnection. Still lacks proper documentation/clean up for the old delay logic. @guille @defunctzombie