Junk all this stuff, and write real code.

Remember:
Map IPs to MKIDs upon entry. Remember the IPs only for lookup_hosts.
Link related certificates.
Smarter lookup routines
Smarter certificate reuse!

