merged 485a5890ef3e7fd4ea2dc59d5a7a38b0b468d5e0
updated for new translations

from 485a5890ef3e7fd4ea2dc59d5a7a38b0b468d5e0
updated for PHP

Also changed from MacPorts to Homebrew
Rewrite of template generator in PHP

Deleted the Python version.