Port some search params logic+tests from current codebase

Closes #565 

This pull request does the following to incoming query parameters:

1. Down-cases any query parameter (standard or advanced) if the entire query is in uppercase.
2. Replaces a set of special characters w/ quotes in any query parameter (standard or advanced).
3. Injects special `solr_params_logic` for CJK queries.