/**
 * Parases a query string into a query object
 */
Doppelganger.Filters.QueryStringFilter = new Filter('QueryString', function(request){
	var search = request.search,
		splitSearch = search.slice(1).split('&'),
		query = {};
	
	if (search !== "") {
		$.each(splitSearch, function(i, paramString){
			var paramPair = paramString.split('=');
			query[paramPair[0]] = paramPair[1];
		});
	}
	request.setQuery(query);
});

/**
 * Parases a query string into a query object
 */
Doppelganger.Filters.QueryStringFilter = new Filter('QueryString', function(request){
	if (!(routeData && routeData.params)) {
		// Only need to read query parameters on first load.
		routeData = $.extend(routeData, {params: Arg.all()});
	}
	//@todo figure out request object
	request.setQuery(query);
	return routeData;
});

Use Arg inside of query string filter.
Use Arg inside of query string filter.
