Clean up PO File Generator

The original PO file generator was pretty messy. This is a first attempt to improve readability and efficiency.
There is still some duplicate code, most notably in the Git functions, and the string parsing isn't perfect.

To test, you will need to install all of the prerequisite perl modules, then run parse.pl and look the new PO files over for flaws.

<!---
@huboard:{"order":7.0}
-->