Improved Phing script.
Server environment.

The server environment is set as an environment variable rather than a server one.
The virtually unused TEST and DEBUG constants have been removed.