Move all utility functions in one spot.
Extract the package template string into a variable.

This makes it easier to read create_project_xml().
rm duplicate and incorrect doctest.

The doctest is the same as in make_from_manifest() and called a the wrong
function.
Add some comments.
Merge pull request #23 from sotte/cleanup_convert_manifest

Cleanup: convert_manifest.py