Cache session id so number of logins is significantly reduced.
Moved login wait loop from SugarCrmResource methods to their related methods in SugarSoap (which implies using less signals).