Update pacman install to work with groups

Update pacman to work with groups (ie "pacman -S base-devel") and save time by skipping the query and replacing it with pacmans --needed option (Do not reinstall the targets that are already up to date).