Replace meta_search with ransack

Replaced meta_search with ransack, unfortunately not fully backwards compatible: ransack uses class_attribute method which was added in rails 3.1, so I updated dependency to rails >= 3.1.0 and removed checks for <3.1.0 from dependency checker.