fix memory leak, double free, etc

and fix a logic: ie_next_usec and mn calculation in do_propagate are different
delete ccnd/self_learning.h

ccnd hook is replaced by Strategy class