Improve PSR2 code checker for committed (or staged) code

Add PHP lint for changed files.
Check for PSR2 and mess detector on all changed files (faster end report).
Some code re-usage (since we always check for both staged and committed code).
Add JS code checker for committed (or staged) code

Check for JS on all changed files.
Update composer