Added MsgIdLayer and MsgSizeLayer protocol layers implementation.
Added unittesting for MsgIdLayer.