Move registration of App plugin from config.xml -> code

Less fragile this way.