add writing json spec for Document
no longer run sync plugin with config spec, to stop incorrect config being used with sync plugin
sync plugin will now properly update an existing design doc if it already exists