api: add Base.group_install() with exclude capability.

Anaconda needs to be able to do the excluding. Also add
Base.group_remove().