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.
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.
Fixed coverity issue 1047640.
Fixed coverity issue 1047636
Fixed coverity issue 1047635
Fixed coverity issue 1047634
Fixed coverity issue 1047625
Fixed coverity issue 1047624
Fixed coverity issue 1047623
Fixed coverity issue 1047622
Fixed coverity issue 1047621
Fixed coverity issue 1047619
Fixed coverity issue 1047618
Fixed coverity issue 1047617