Add logging and daemonization for publishing; also adding output file validation for publishing.