Updated url methods to handle query args. process_url now uses $here if nothing is passed.