Implement very basic dependency check on software removal

We later want to have the manager emit a list of broken packages, and
also allow removing a package including its dependencies.
But for now, this very simple implementation will do the job.