Fix nickname change conflicts

fixes #242
Added configure-debug script
Use stack rather than heap for autcomplete_param_with_func

issue #226
Fixed memory leak in accounts_get_account

issue #226
Fixed memory leak in _cmd_connect

issue #226
Fixed memory leak in accounts_get_account

issue #226
Fixed memory leak in parse_args_with_freetext

issue #226
Fixed memory leaks in chat logs

issue #226
Moved free in parse_args_with_freetext

issue #226
Fixed memory leak in _cmd_join

issue #226
Fixed memory leak in groupchat logging

issue #226
Merge branch 'master' into plugins