Merge pull request #2212 from awakecoding/master

RemoteApp, Virtual Channel, Clipboard, Test and Utils Cleanup
Added callback appender for wlog.
Replaced fprintf error messages with WLog.
Fixed callback appender setup.
Added unit test for callback wlog appender.
Fixed memory leak.
Fixed use after free.
Fixed memory leaks.
Fixed memory leak
Fixed use after free.
Fixed use after free.
Fixed missing return check.
Fixed realloc return check.
Fixed uninitialized argument value.
Fixed memory leak.
Fixed memory leak.
Fixed memory leak.
Fixed memory leak.
Fixed memory leak.
Checking setgid before calling initgroups now.