requestctl: move find, find_ip to the api
This will allow using the functionality in hiddenparma.
Also, this fixes a TODO for find_ip and a bug caused by the fact we were liberal in accepting non-strictly-correct CIDRs, but the find_ip function was not. This is now fixed.