PHPCR fixes + add gallery support
PHPCRGenerator: add test
fix issue that would cause xsendfile not to work