Implement resubmit, CAF-121. Deleted unused code, use str and not json.dumps also for white/blacklist