isolate debug messages, split inventory functions from harvesting module

Signed-off-by: themuntdregger <themuntdregger@gmail.com>