Fixed password reset (Devise 2.2.0 no longer allows requests to
resources using JSON)