Add php-cs-fixer code style pre-commit hook

Check staged files for code style correctness and abort
if any file fails a style check test.

Reorganise repository to allow per-hook documentation.