added devise gem and fixed mime responds issue using jenius solution from https://github.com/rails-api/rails-api/issues/24