A Framework For Studying Behavioral Evolution By Reconstructing Ancestral Repertoires