Theory and Simulation of Shear Flow Instabilities in Complex Fluids