Convert shutdown callbacks to use environment variable like s:RtGrep now does
Convert ag search to use updated s:RtGrep call signature