Police charge man, pals with beating, threatening girlfriend's former boyfriend