Adding socket event monitoring and reconnect_ivl_max

mqexec will now log socket events, connections, disconnects, and
reconnection attempts will be logged now for diagnostic purposes.

In addition to specifying the reconnect interval, you can set
the maximum reconnection interval, to cause exponential backoff
timeouts. By default, it's set to 0, which means only the
reconnect interval will be used.