Revert "Don't log in the CLI"

This reverts commit cf19e573de6d05fb33e541b9e97facfc4adc6257.
Cache ranges
Perf improvement in power consumption calculation
Fix bug that would send 1 additional Period to Drools
Only add those facts that are actually present