Tightened up search page. Fixed javascript and some model and API errors. (It wasn't handling search terms with spaces.)