Fix for memory leaks and security fixes.

 - User_Auth_Cmd is freed properly from memory.
 - Data of user credentials (passwords) are overwriten by zeros
   before it is freed from memory.
Refactoring: right names of unctions.
Refactoring o code.
Added two tests: wrong negotiate commands.