Add build script using phing

Add build.xml with tasks for phing to run builds and tests.
Add Phing (and dependencies) to composer.json
Add build dir to .gitignore