Prevents the search parsing from crashing if there's a warning box
Unquote the search query from the search page
Adds test cases for the previous two fixes
Fixes memcache interaction with strange search queries