Added missing toString() methods to config classes.
Implemented tx recovery when client is disconnected.
Small refactorings.