First cut at self-hosting error/promote scripts