Adds backend part füor #7 (Add option to define if documents should be published per default)