Further restructuring of messagebroker-phplib