Building better oscillators using nonlinear dynamics and pattern formation