Implement deleting versions/profiles, ensure profiles/versions in use can't be deleted, other stuff