LESS implementations of various PHP-side hacks.

It's not perfect and not all the hacks are here (and some cannot be added
w/o core changes, like new IDs and/or classes or the like), but it still
beats hacking a bunch of PHP files.

Change-Id: I87699bd13378aae89827dbe17d61d5372d03c7a4