api: Base.resolve() takes allow_erasing. (RhBug:1073859)

In CLI, this is set directly from demands.allow_erasing (renamed from
uninstalling_allowed).