Add support for Mask Write Register

This patch adds support for the mask write register command on both server and client side