Implement #[plugin_registrar]
Use phase(plugin) in bootstrap libs

Do this to avoid warnings on post-stage0 builds.
Use phase(plugin) in other libs
Use phase(plugin) in tests
Convert libraries to use #[plugin_registrar]
Convert tests to use #[plugin_registrar]
Add a test for deprecated phase(syntax)