Programmable System for Laser Control of Trapped-Ion Experiments