move addWMS and addWFS to common mapscript.