Add phing build script
Add ExceptionFactoryTrait