This commit refactors repo-actions support to use components and make the implementation much simpler. It also fixes a bug with buttons being displayed when they shouldn't be.