Synthetic Gauge Fields in Trapped-Ion Crystals: From Background Peierls Phases to Z2 Gauge Theories