Barnstable will use $315K in state and federal grants to study 14 intersections for vehicle, bicycle and pedestrian safety.