JC: added search action in routes.rb. Fixed bugs in search. Added customer_class in lib. Added search link to index page. Spec passes.