Made specific resource cleanup functions more efficient
Added a restore_rdf management command to complement the backup_rdf command