Feature/delkeys

+ The first commit is only about a helping function that I needed from item_lib.c
+ Lastseen DB coherence is redmine #2463
+ Key removal is redmine #2025
+ Key removal is started only if the lastseen data coherence is good
+ DNS resolution for deleting hosts is gone (host is ideally an IP address)
+ Every commit depends on the one preceding it.