A 17-year-old girl was raped — possibly as onlookers shot cellphone videos — at a wild, alcohol-fueled country music show at the Xfinity Center on Saturday night, authorities say, and the Mansfield selectmen chairman said town officials are working to prevent a repeat of the debauchery that marked the Keith Urban concert.