Move FramebufferUpdate (including encodings) outside the functor

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Test the marshalling of zero rectangles

Signed-off-by: David Scott <dave.scott@eu.citrix.com>