Add server-side RDPEI

This patch mutualize code between client and server for RDPEI. And add support for
the server-side.
Merge pull request #2223 from awakecoding/master

Clipboard, OS X Threads, Lync RDP Server
Merge pull request #2224 from hardening/rdpei_server

Add server-side RDPEI