Fixed various memory leaks and resource deallocation problems.
fix per-device CAL licensing
(cherry picked from commit d6d0d81d08df4ee697ed4e8eb81264e95e1355df)
Extract shared code in RAIL channel

This patch starts a code mutualisation for a RAIL server-side
implementation. The file rail_common.c contains code that is shared
by both client and server.
Fixed invalid reallocations
Merge pull request #1451 from ilammy/realloc-fixes

Fixed invalid reallocations
fastpath: fixed sending of multiple input messages
cmd line: fixed description
cmd: fixed some compatibility messages

closes #1442
server: fix double demand active pdu during reactivation.
libfreerdp-codec/rfx: fix memory corruptions.
Merge pull request #1434 from akallabeth/memleak_fixes

Fixed various memory leaks and resource deallocation problems.
Merge pull request #1453 from bmiklautz/issue/773

fastpath: fixed sending of multiple input messages
Merge pull request #1444 from bmiklautz/master-stable-1.1-sync

fix per-device CAL licensing
Merge pull request #1447 from hardening/server-side-rail

Extract shared code in RAIL channel
Merge pull request #1454 from bmiklautz/issue/1442

Misc documentation fixes
Fixed coverity issue 1047640.
Fixed coverity issue 1047636
Fixed coverity issue 1047635
Fixed coverity issue 1047634
Fixed coverity issue 1047625