Cleanup + code quality.

A "bulk" pull request including smalls edits to clean the code, and make it more compliant with PHP/JS/CSS standards and best practices.

A lot more can be done ; this is the low hanging fruit.