Refactoring of ComProxy

I created a new class MaskBuffer to handle the masking of the outputbuffer in a seperate object noit directly in ComProxy. Unmasking will follow soon.