Refactor Steps a bit to allow for syncing

Previously, most of the Steps were related to publishing. However, with small
modification they can also be used for performing syncs.

This commit factors the shared code for both sync and publish into a new
PluginStep, and creates a mixin for unit processing.