Refactoring of kernel module tools.

The old, textual cache is replaced by a hash-based one and logging is removed.