Implemented new params lookup and added tests.
Converted parse_query_string to simplified CJS.