code plugin new router

This changes the code plugin to the new format. It also removes it from the legacy plugin list.