Add back publish to context/synced on success

This was incorrectly removed in aa197a58
Separate out config options for clarity

Add get/set methods directly on config object.