Client side APIs redo, 20140923

 - Fix a logic defect in mg_adaptor.c, only the CB01 on each panel
   of a BCM is updated, while the rest CBs on the same panel are
   only updated when the time comes to append a history record

 - Improve the efficiency by not updating BM contract via batch
   if the descriptors are not updated in the first place