Common code for FlatPress utilities.
Refactor code from FlatPress scripts to 'bin/flatpress-common'.