Filtering function for complicated $_GET, $_POST, $_COOKIE, $_REQUEST structure.