fix compute-ap-stats to use the hooks API, rather than a bad (and now broken) method of hooking into IITC
call the requestFinished hook in the new request handling code - for plugins that need it
also make a request to hook something that doesn't exist a non-fatal error - to reduce plugin breakage for removed hooks