Added a Phing build script

CAUTION: This is not production ready yet!
Also updated scrutinizer config to exclude test directory from analysis