Use xml lib to produce <dependencies/>.

(Instead of string utils)
Use XML lib instead of string templating.

Inline the rest of the pom.xml into code.
Use "where" instead of "do ... let"
Merge pull request #589 from LeifW/xml_lib

Use an XML lib to produce the pom.xml, instead of string templating on a file.