Rework of the code plugin to fit the new structure

This turns the code plugin into a function instead of a class a la the new structure.
The code plugin html file is amended in accordance to the new layout.
Finally, it also removes it from the legacy plugin list.

Use ?w=1 when reviewing to get rid of whitespace related differences.