add basic library for server.xml manipulation and update sames to use it