Fixed saving of login properties and reconnection procedure. Also removed redundant code from client and kristalliprotocolmodule.