Auto reconnect functionallity added

.instance.setAutoReconnect(5000) enables and set the reconnection
interval to five seconds.  Toggle auto reconnect using
instance.autoReconnect(bool)