Name changes and general cleanup to the deployment script

Did some basic check on the existing comments, updated terminology (i.e.
changed trunk/svn to repository) with more neutral terms.

Lines with more than 80 columns were wrapped to new lines.

Print statements use format and function-like syntax, in order to be
both python 2 and 3 compliant