Fixed command logging.

Fixed logging so that all commands now write log messages to ``logs/<cmd>rules.log``. Logging was previously broken by the move to classes because debugging was turned off. This commit turns it back on and also gives each rule it's own logger, and organizes all logs into a ``logs`` directory.