Add developer scripts

Automates the procedure documented in `CONTRIBUTING.md`.

Left out documentation for the moment to avoid merge conflict with #2390.