Rails 4.0 upgrade

Refactoring  lib/rapid_ftr/couch_rest_rails_backward.rb. remove view_raw, now view always returns an array of doc.

In places where the view is called directly (no using the method 'view'), use the 'all' method to retrieve the docs.

In  app/models/enquiry.rb, the criteria attribute need specify the type get correctly updated.