Few improvements

Add disconnect recovery
Add mysql support for logging
Add multichannel support