GLU MOBILE INC. AMENDED AND RESTATED SERIES D AND SERIES D-1 PREFERRED STOCK PURCHASE AGREEMENT