Don't use a class attribute as global variable to store SugarSoap object. Also fixes memory leaks.