configure phpunit, phpcs, phpmd harness

modify phpci
relax phpmd to pass 3rd-party code
add .travis.yml