Add initscript export support to foreman

This also requires updating foreman for compatibility. Version 0.61.0 was
chosen, because it doesn't introduce any new dependencies.