compleat reforming of classes excluding tests );-P

devide messege passing module and control DOM module.
and remove some unused methods at backend message passing module.