fixed csrf issue for ember-data -- fixed bug in index controller