Clean up the server-xml.erb file

- removing unnecessary comments
add documentation of classes and defined types
setup spec system
add spec tests