RemoteFX fix

This patch fixes remoteFx encoder performances. With the previous code with a list of rectangles containing something top left and something bottom right, the full screen was encoded.
With the new code only the necessary tiles are sent.
As a bonus, the list of provided rectangles is sanitized and simplified.