Add build system and switch to PHPunit

Integrate Cross Rhythms standard module build system, including porting
tests to PHPunit and refactoring fixtures directory.
Fix coding standard violations.

Fix violations reported by build script.