Merge pull request #1574 from awakecoding/master

Refactoring, Robustness, Valgrind Fixes, WinPR
Merge branch 'master' of github.com:FreeRDP/FreeRDP